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

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

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

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

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