Function cmb_random_chisquared
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_chisquared(const double k)
Chi-squared distribution on
[0, oo), modeling the sum ofksquared standard normal distributions N(0, 1).Used to model sample variances for normally distributed samples.
The parameter
kis known as the ‘degrees of freedom’ when it is an integer value. Here generalized by permitting real-valuedk, not just integers.See also https://en.wikipedia.org/wiki/Chi-squared_distribution