Function cmb_random_gamma
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_gamma(const double shape, const double scale)
Gamma distribution on
[0, oo)with shape parametershapeand scale parameterscale, both> 0.Generalizes the Erlang distribution to noninteger
n(hereshape). The mean isshape * scale, the varianceshape * scale^2.Used for various servicing, waiting, and repair times in queuing systems, along the exponential and Erlang distributions.