1 #ifndef STAN_MATH_PRIM_SCAL_PROB_PARETO_RNG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_PARETO_RNG_HPP
4 #include <boost/random/exponential_distribution.hpp>
5 #include <boost/random/variate_generator.hpp>
24 using boost::variate_generator;
25 using boost::exponential_distribution;
27 static const char*
function(
"stan::math::pareto_rng");
34 variate_generator<RNG&, exponential_distribution<> >
35 exp_rng(rng, exponential_distribution<>(alpha));
double pareto_rng(const double y_min, const double alpha, RNG &rng)
fvar< T > exp(const fvar< T > &x)
bool check_positive_finite(const char *function, const char *name, const T_y &y)
Return true if y is positive and finite.