void RandomMultinomial(TVecInt *Dst, const int nTrials, const int k, const DewArray<double> &p);
Generates multinomially distributed random numbers.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVecInt * | |
| 2 | nTrials | const int | |
| 3 | k | const int | |
| 4 | p | const DewArray<double> & |
Remarks:
The function generates multinomially distributed random numbers with m independent trials and k possible mutually exclusive outcomes, with corresponding probabilities in p.
Declared in Dew::Math::TRngStream · Dew.Math/RndGenerators.h · Cross-compiler