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(
"lognormal_rng");
32 variate_generator<RNG&, lognormal_distribution<> >
33 lognorm_rng(rng, lognormal_distribution<>(mu, sigma));
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
double lognormal_rng(double mu, double sigma, RNG &rng)