1 #ifndef STAN_MATH_PRIM_SCAL_PROB_SCALED_INV_CHI_SQUARE_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_SCALED_INV_CHI_SQUARE_RNG_HPP 4 #include <boost/random/chi_squared_distribution.hpp> 5 #include <boost/random/variate_generator.hpp> 30 using boost::variate_generator;
31 using boost::random::chi_squared_distribution;
33 static const char*
function(
"scaled_inv_chi_square_rng");
38 variate_generator<RNG&, chi_squared_distribution<> >
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
double scaled_inv_chi_square_rng(double nu, double s, RNG &rng)
double chi_square_rng(double nu, RNG &rng)