Negative Binomial Distribution Constructor
Constructs a new NegativeBinomialDistribution
object.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public NegativeBinomialDistribution(
int numberOfTrials,
double probabilityOfSuccess
)
Parameters
Remarks
The number of trials must be greater than zero. The probability of success must be a number between 0 and 1, inclusive.
Exceptions
Argument | numberOfTrials is less than or equal to zero. -or- probabilityOfSuccess is less than zero or greater than 1. |