void RandomNegbinomial(TMtxVecInt Dst, Double r, Double p)
Generates an array of integer amples distributed according to the Negative binomial probability distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | r | Double | scalar |
| 3 | p | Double | scalar |
Result: stored in self (calling object)
Remarks:
Returns random numbers distributed according to the Negative binomial probability density function (PDF) as defined here Dew.Math.Units.Probabilities.NegBinomPDF. 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.