NegativeBinomialDistribution Constructor

Constructs a new NegativeBinomialDistribution object.

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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

ArgumentOutOfRangeExceptionnumberOfTrials is less than or equal to zero.

-or-

probabilityOfSuccess is less than zero or greater than 1.

See Also