rStats.js v1.3.0
    Preparing search index...

    Function ppois

    • Distribution function of the Poisson distribution. Equivalent to R's ppois(q, lambda, lower.tail = TRUE, log.p = FALSE).

      Type Parameters

      Parameters

      • q: T

        Quantile(s): a number, number[] or Float64Array. The result has the same shape.

      • lambda: number

        Mean.

      • options: TailOptions = {}

        lowerTail and logP (see TailOptions).

      Returns VectorResult<T>

      The probability (or log probability).

      ppois(2, 3);                       // 0.4231900811268436
      ppois(5, 3, { lowerTail: false }); // P[X > 5] = 0.08391794203130346