Function cmb_random_erlang

Function Documentation

static inline double cmb_random_erlang(const unsigned k, const double m)

Erlang distribution on [0, oo), a sum of k exponentially distributed random variables each with mean m, where k > 0 and m > 0.

The mean is k m, the variance k m^2.

Used for modeling more complex service times than the simple exponential.

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