TRngStream::RandomHypergeometric Method

void RandomHypergeometric(TMtxVecInt *Dst, const int m, const int k, const int n);

Generates an array of integer samples distributed Hypergeometrically.

#NameTypeDescription
1DstTMtxVecInt *
2mconst int
3kconst int
4nconst int
Remarks:

Hypergeometric probability density function (PDF). Returns random numbers distributed according to the Hypergeometric probability density function (PDF) as defined here Probabilities::HypGeometricPDF. The number of samples generated is defined with the Dst.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