Function cmb_random_lognormal
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_lognormal(const double m, const double s)
Lognormal distribution on
[0, oo)with parametersmands, wherem > 0ands > 0.The mean is
exp(m + 0.5 s^2), the medianexp(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