1 #ifndef STAN_MATH_PRIM_SCAL_PROB_NORMAL_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_NORMAL_RNG_HPP 4 #include <boost/random/normal_distribution.hpp> 5 #include <boost/random/variate_generator.hpp> 21 using boost::variate_generator;
22 using boost::normal_distribution;
24 static const char*
function(
"normal_rng");
31 variate_generator<RNG&, normal_distribution<> >
32 norm_rng(rng, normal_distribution<>(mu, sigma));
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
double normal_rng(double mu, double sigma, RNG &rng)
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.