TRngStream.RandomHypergeometric Method

void RandomHypergeometric(TMtxVecInt Dst, Int32 m, Int32 k, Int32 n)

Generates an array of integer samples distributed Hypergeometrically.

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2mInt32
3kInt32
4nInt32

Result: stored in self (calling object)

Remarks:

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