Option variable
random_beta_algorithm
Default value: cheng
This is the selected algorithm for simulating random beta variates. Implemented algorithms are cheng
, inverse
and ratio
cheng
, this is the algorithm defined in Cheng, R.C.H. (1978). Generating Beta Variates with Nonintegral Shape Parameters. Communications of the ACM, 21:317-322
inverse
, based on the general inverse method.
ratio
, based on the fact that if X is a random variable Gamma(a,1) and Y is Gamma(b,1), then the ratio X/(X+Y) is distributed as Beta(a,b).