NegativeBinomialDistribution Constructor

Constructs a new NegativeBinomialDistribution object.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public NegativeBinomialDistribution(
	int numberOfTrials,
	double probabilityOfSuccess
)

Parameters

numberOfTrials  Int32
The number of trials.
probabilityOfSuccess  Double
The probability of a trial resulting in success.

Remarks

The number of trials must be greater than zero. The probability of success must be a number between 0 and 1, inclusive.

Exceptions

ArgumentOutOfRangeException

numberOfTrials is less than or equal to zero.

-or-

probabilityOfSuccess is less than zero or greater than 1.

See Also