Class Poisson

Poisson distribution: A discrete probability distribution that describes the number of events occuring within a fixed interval of time or space given these events occur with a constant mean rate λ and independently of the time since the last event.

Constructors

Properties

Methods

Constructors

Properties

lambda: number

The mean number of events in a given interval of time or space.

mean: number

The mean of the distribution.

stdev: number

The standard deviation of the distribution.

variance: number

The variance of the distribution.

Methods

  • Get the probability of exactly x successes in a given interval of time or space.

    Parameters

    • x: number

      The number of successes. (x must be an integer and x≥0)

    Returns number

    Return P(X=x).