TRngStream::RandomPoisson Method

Overload List

#SignatureDescription
1void RandomPoisson(TMtxVecInt *Dst, const double lambda, const TPoissonRandMethod Method = TPoissonRandMethod::prmPTPE);Generates an array of integer samples distributed according to the Poisson probability distribution.
2void RandomPoisson(TMtxVecInt *Dst, const DewArray<double> &lambda, const TPoissonRandMethod Method = TPoissonRandMethod::prmPTPE);Generates an array of integer samples distributed according to the Poisson probability distribution.

Overload 1: void RandomPoisson(TMtxVecInt *Dst, const double lambda, const TPoissonRandMethod Method = TPoissonRandMethod::prmPTPE);

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

#NameTypeDescription
1DstTMtxVecInt *
2lambdaconst double
3Method = TPoissonRandMethod::prmPTPEconst TPoissonRandMethod
Remarks:

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

Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler

Overload 2: void RandomPoisson(TMtxVecInt *Dst, const DewArray<double> &lambda, const TPoissonRandMethod Method = TPoissonRandMethod::prmPTPE);

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

#NameTypeDescription
1DstTMtxVecInt *
2lambdaconst DewArray<double> &
3Method = TPoissonRandMethod::prmPTPEconst TPoissonRandMethod
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.

Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler