1 #ifndef STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_RNG_HPP 14 #include <boost/random/exponential_distribution.hpp> 15 #include <boost/random/variate_generator.hpp> 24 using boost::variate_generator;
25 using boost::exponential_distribution;
27 static const char*
function(
"exponential_rng");
31 variate_generator<RNG&, exponential_distribution<> >
32 exp_rng(rng, exponential_distribution<>(beta));
double exponential_rng(double beta, RNG &rng)
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.