void RandomHypGeometric(const int M, const int K, const int N, TMtxVecInt *results, int Seed = - 1);
Hypergeometric distribution random generator.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | M | const int | |
| 2 | K | const int | |
| 3 | N | const int | |
| 4 | results | TMtxVecInt * | |
| 5 | Seed = - 1 | int |
Remarks:
This routine generates Result.Length pseudo random numbers, using the hypergeometric distribution with parameters M (lot size), K (size of sampling) and N (marked elements in the lot). The random numbers are stored in the Results vector. An exception is raised if Result vector is complex.
Declared in Dew::Stats::Units::StatRandom · Dew.Stats/Units.StatRandom.h · Cross-compiler