You are here: Symbol Reference > RndGenerators Namespace > Classes > TRngStream Class > public > RandomPoisson Method > TRngStream.RandomPoisson Method (TMtxVecInt, TDoubleArray, TPoissonRandMethod)
MtxVec VCL
ContentsIndex
PreviousUpNext
TRngStream.RandomPoisson Method (TMtxVecInt, TDoubleArray, TPoissonRandMethod)

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

Pascal
procedure RandomPoisson(const Dst: TMtxVecInt; const lambda: TDoubleArray; const Method: TPoissonRandMethod = prmPTPE); overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!