Scythe-1.0.3
template<class RNGTYPE>
double scythe::rng< RNGTYPE >::rgamma ( double  shape,
double  rate 
) [inline]

Generate a gamma distributed random variate.

This function returns a pseudo-random variate drawn from the gamma distribution with a given shape and scale.

Parameters:
shapeThe strictly positive shape of the distribution.
rateThe inverse of the strictly positive scale of the distribution. That is, 1 / scale.
See also:
pgamma(double x, double shape, double scale)
dgamma(double x, double shape, double scale)
gammafn(double x)
lngammafn(double x)
Exceptions:
scythe_invalid_arg(Level 1)

Referenced by scythe::rng< mersenne >::rchisq(), scythe::rng< mersenne >::rdirich(), scythe::rng< mersenne >::rigamma(), and scythe::rng< mersenne >::rnbinom().