p(x) = k * x^(alpha-1) * (1-x)^(beta-1) with k = g(alpha+beta)/(g(alpha)*g(beta)) and g(a) being the gamma function.
Valid parameter ranges: alpha > 0 and beta > 0.
Instance methods operate on a user supplied uniform random number generator; they are unsynchronized.
Implementation:
H. Sakasegawa (1983): Stratified rejection and squeeze method for generating beta random numbers, Ann. Inst. Statist. Math. 35 B, 291-302.
and
Stadlober E., H. Zechner (1993), Generating beta variates via patchwork rejection,, Computing 50, 1-18. @author wolfgang.hoschek@cern.ch @version 1.0, 09/24/99
|
|
|
|
|
|