Function cmb_random_std_beta

Function Documentation

static inline double cmb_random_std_beta(const double a, const double b)

Beta distribution on the interval [0, 1] with real-valued shape parameters a and b, where a > 0 and b > 0.

The mean is a/(a + b).

Used to model various proportions and percentages of something.

See also https://en.wikipedia.org/wiki/Beta_distribution