dPoisson

dPoisson(_lambda, k)

probability distribution function of a Poisson distribution.

Parameters:
lambdafloat, \lambda \geq 0

The intensity of the Poisson distribution.

kint

The number of success.

Returns:
pfloat

The probability to get k successes.

Notes

This method implements Loader’s algorithm, the fast and accurate method described in [loader2000], with the further improvements mentioned in [dimitriadis2016].

Examples

>>> import openturns as ot
>>> p = ot.DistFunc.dPoisson(5.0, 2)