1 #ifndef STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
4 #include <boost/random/lognormal_distribution.hpp>
5 #include <boost/random/variate_generator.hpp>
24 using boost::variate_generator;
25 using boost::random::lognormal_distribution;
27 static const char*
function(
"stan::math::lognormal_rng");
35 variate_generator<RNG&, lognormal_distribution<> >
36 lognorm_rng(rng, lognormal_distribution<>(mu, sigma));
double lognormal_rng(const double mu, const double sigma, RNG &rng)
bool check_finite(const char *function, const char *name, const T_y &y)
Return true if y is finite.
bool check_positive_finite(const char *function, const char *name, const T_y &y)
Return true if y is positive and finite.