Function cmb_random_std_gamma

Function Documentation

double cmb_random_std_gamma(double shape)

Gamma distribution on [0, oo) with shape parameter shape, where shape > 0. Equal to cmb_random_std_gamma(shape, 1.0).

Generalizes the Erlang distribution to noninteger n (shape). The mean and variance equal shape.

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