Function cmb_random_hypoexponential
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_hypoexponential(const unsigned n, const double *ma)
Hypoexponential on
[0, oo), a sum ofnexponentially distributed random variables, each with meanma[i], wheren > 0andma[i] > 0.The mean equals the sum of
ma[i], the variance the sum ofma[i]^2.A slight generalization of the Erlang distribution by allowing each summed item its own exponential parameter. This will give a lower coefficient of variation than a single exponential, hence the name.
See also https://en.wikipedia.org/wiki/Hypoexponential_distribution