1 #ifndef STAN_MATH_PRIM_SCAL_PROB_INV_GAMMA_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_INV_GAMMA_RNG_HPP 21 #include <boost/random/gamma_distribution.hpp> 22 #include <boost/random/variate_generator.hpp> 32 using boost::variate_generator;
33 using boost::random::gamma_distribution;
35 static const char*
function(
"inv_gamma_rng");
40 variate_generator<RNG&, gamma_distribution<> >
41 gamma_rng(rng, gamma_distribution<>(alpha, 1 / beta));
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
double inv_gamma_rng(double alpha, double beta, RNG &rng)
double gamma_rng(double alpha, double beta, RNG &rng)