1 #ifndef STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_RNG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_RNG_HPP
15 #include <boost/random/exponential_distribution.hpp>
16 #include <boost/random/variate_generator.hpp>
26 using boost::variate_generator;
27 using boost::exponential_distribution;
29 static const char*
function(
"stan::math::exponential_rng");
35 variate_generator<RNG&, exponential_distribution<> >
36 exp_rng(rng, exponential_distribution<>(beta));
double exponential_rng(const double beta, RNG &rng)
bool check_positive_finite(const char *function, const char *name, const T_y &y)
Return true if y is positive and finite.