Returns a sample of the given size from a Gamma distribution.
This is equivalent to R's rgamma function.
Options:
:shape (default 1)
:rate (default 1)
See also:
pdf-gamma, cdf-gamma, and quantile-gamma
References:
http://incanter.org/docs/parallelcolt/api/cern/jet/random/tdouble/Gamma.html
http://en.wikipedia.org/wiki/Gamma_distribution
Example:
(sample-gamma 1000 :shape 1 :rate 2)
Comments top
No comments for sample-gamma. Log in to add a comment.