NegativeBinomialSample Method (Int32, Double)
|
Static method which generates new sample of negative binomial distribution variate with specified parameters.
Namespace:
FinMath.Statistics.Distributions
Assembly:
FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax public static int Sample(
int numberOfFailures,
double successProbability
)
Parameters
- numberOfFailures
- Type: SystemInt32
Number of failures until the experiment is stopped. - successProbability
- Type: SystemDouble
Success probability in each trial.
Return Value
Type:
Int32Random variable sample.
See Also