class

Statistics::Distributions::Poisson

Inherits Statistics::Distributions::DiscreteDistribution / Statistics::Distributions::Distribution / Reference / Object

Represents a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time or space if these events occur with a known constant mean rate and independently of the time since the last event (source: wikipedia)

Constructors

new(lambda : Float64)

Creates a Poisson distribution with expected value lambda.

Source

Instance methods

pmf(x)

The Probability Mass Function (PMF) of a discrete random variable.

Source
rand

Samples a random variable with the given distribution.

Source