void RandomNegBinom(const double R, const double p, TMtxVecInt *results, int Seed = - 1);
Negative binomial distribution random generator.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | R | const double | |
| 2 | p | const double | |
| 3 | results | TMtxVecInt * | |
| 4 | Seed = - 1 | int |
Remarks:
This routine generates Result.Length pseudo random numbers, using the hypergeometric distribution with parameters M, K and N. 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