TRngStream.RandomPoisson Method

Overload List

#SignatureDescription
1procedure RandomPoisson(Dst: TMtxVecInt; lambda: Double; Method: TPoissonRandMethod);Generates an array of integer samples distributed according to the Poisson probability distribution.
2procedure RandomPoisson(Dst: TMtxVecInt; lambda: TDoubleArray; Method: TPoissonRandMethod);Generates an array of integer samples distributed according to the Poisson probability distribution.

Overload 1: procedure RandomPoisson(Dst: TMtxVecInt; lambda: Double; Method: TPoissonRandMethod);

Generates an array of integer samples distributed according to the Poisson probability distribution.

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2lambdaDoublescalar
3MethodTPoissonRandMethod

Result: stored in self (calling object)

Remarks:

The lambda parameter is the same for all random numbers generated. Dst is automatically resized to store 32bit integers, if needed.

Overload 2: procedure RandomPoisson(Dst: TMtxVecInt; lambda: TDoubleArray; Method: TPoissonRandMethod);

Generates an array of integer samples distributed according to the Poisson probability distribution.

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2lambdaTDoubleArray
3MethodTPoissonRandMethod

Result: stored in self (calling object)

Remarks:

Returns random numbers distributed according to the Poisson probability density function (PDF) as defined here Probabilities.PoissonPDF. The lambda parameter can be different for each random number generated, The number of samples generated is defined with the Lambda.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property. Dst is automatically resized to store 32bit integers, if needed.