Dew MtxVec NET
TRngStream.RandomNegbinomial Method
Summary
Generates an array of integer amples distributed according to the Negative binomial probability distribution.

Class
TRngStream

Declaration
Procedure RandomNegbinomial(Dst: TMtxVec; r, p: double);

Description
Returns random numbers distributed according to the Negative binomial probability density function (PDF) as defined here NegBinomPDF. The number of samples generated is defined with the Dst.Length parameter. The result is an array of integers which can be accessed via Dst.IValues property.

Copyright 2008 Dew Research
http://www.dewresearch.com