TRngStream.RandomPoisson Method

Overload List

#SignatureDescription
1void RandomPoisson(TMtxVecInt Dst, Double lambda, TPoissonRandMethod Method)Generates an array of integer samples distributed according to the Poisson probability distribution.
2void RandomPoisson(TMtxVecInt Dst, Double[] lambda, TPoissonRandMethod Method)Generates an array of integer samples distributed according to the Poisson probability distribution.

Overload 1: void RandomPoisson(TMtxVecInt Dst, Double lambda, TPoissonRandMethod Method)

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: void RandomPoisson(TMtxVecInt Dst, Double[] lambda, TPoissonRandMethod Method)

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

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2lambdaDouble[]
3MethodTPoissonRandMethod

Result: stored in self (calling object)

Remarks:

Returns random numbers distributed according to the Poisson probability density function (PDF) as defined here Dew.Math.Units.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.