Click or drag to resize
StdRandomPoisson Method
Returns a random integer from a Poisson distribution with mean lambda (λ).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static int Poisson(
	double lambda
)

Parameters

lambda
Type: SystemDouble
lambda (λ) the mean of the Poisson distribution

Return Value

Type: Int32
a random integer from a Poisson distribution with mean lambda
Exceptions
ExceptionCondition
ArgumentExceptionunless lambda > 0.0 and not infinite
See Also