Click or drag to resize

NegativeBinomialSample(Random, Double, Double) Method

Samples a random variable.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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