Function cmb_random_rayleigh

Function Documentation

static inline double cmb_random_rayleigh(const double s)

Rayleigh distribution, equivalent to a scaled chi distribution with k = 2.

Occurs in natural phenomena like the amplitude of wind or waves summing from several directions.

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