Function cmb_random_t_dist
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_t_dist(const double m, const double s, const double v)
A location - scale generalization of Student’s t distribution.
Mean
mforv > 1, variances * s * v /(v - 2)forv > 2, otherwise undefined.Can be used as a drop-in replacement for normal distributions if fatter tails are needed. It is equal to a Cauchy distribution for
v = 1, converges to a normal distribution N(m, s) forv -> oo.See also https://en.wikipedia.org/wiki/Student%27s_t-distribution