Click or drag to resize

IntRandomNegativeBinomialDistribution(Int32, Double) Constructor

Constructs a random number generator for a discrete negative binomial distribution using the specified number of failures before stopping and probability of success on each trial.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public IntRandomNegativeBinomialDistribution(
	int failures,
	double probability
)

Parameters

failures  Int32
Target for number of successful trials.
probability  Double
The probability of success on each trial.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if size less than 0 or probability less than 0 or greater than 1.
See Also