Returns a sample of the given size from a Negative Binomial distribution.
Same as R's rnbinom
Options:
:size (default 10)
:prob (default 1/2)
See also:
pdf-neg-binomial and cdf-neg-binomial
References:
http://incanter.org/docs/parallelcolt/api/cern/jet/random/tdouble/NegativeBinomial.html
http://en.wikipedia.org/wiki/Negative_binomial_distribution
Example:
(sample-neg-binomial 1000 :prob 1/2 :size 20)
Comments top
No comments for sample-neg-binomial. Log in to add a comment.