Function cmb_random_lognormal

Function Documentation

static inline double cmb_random_lognormal(const double m, const double s)

Lognormal distribution on [0, oo) with parameters m and s, where m > 0 and s > 0.

The mean is exp(m + 0.5 s^2), the median exp(m).

Occurs naturally for effects that are the product of many small non-negative sources of variation, including multiplicative measurement errors.

See also https://en.wikipedia.org/wiki/Log-normal_distribution