Returns a sample of the given size from a Beta distribution.
This is equivalent to R's rbeta function.
Options:
:alpha (default 1)
:beta (default 1)
These default values produce a Uniform distribution.
See also:
pdf-beta and cdf-beta
References:
http://incanter.org/docs/parallelcolt/api/cern/jet/random/tdouble/Beta.html
http://en.wikipedia.org/wiki/Beta_distribution
Example:
(sample-beta 1000 :alpha 1 :beta 2)
Comments top
No comments for sample-beta. Log in to add a comment.