NegativeBinomialSample(Random, Double, Double) Method |
Samples a random variable.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static int Sample(
Random rnd,
double r,
double p
)
Parameters
- rnd Random
- The random number generator to use.
- r Double
- The number of successes (r) required to stop the experiment. Range: r ≥ 0.
- p Double
- The probability (p) of a trial resulting in success. Range: 0 ≤ p ≤ 1.
Return Value
Int32[Missing <returns> documentation for "M:Altaxo.Calc.Distributions.NegativeBinomial.Sample(System.Random,System.Double,System.Double)"]
See Also