1 #ifndef STAN_MATH_PRIM_SCAL_PROB_GAMMA_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_GAMMA_RNG_HPP 4 #include <boost/random/gamma_distribution.hpp> 5 #include <boost/random/variate_generator.hpp> 31 using boost::variate_generator;
32 using boost::gamma_distribution;
34 static const char*
function(
"gamma_rng");
43 variate_generator<RNG&, gamma_distribution<> >
44 gamma_rng(rng, gamma_distribution<>(alpha, 1.0 / beta));
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
double gamma_rng(double alpha, double beta, RNG &rng)