1 #ifndef STAN_MATH_PRIM_SCAL_PROB_RAYLEIGH_RNG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_RAYLEIGH_RNG_HPP
15 #include <boost/random/uniform_real_distribution.hpp>
16 #include <boost/random/variate_generator.hpp>
26 using boost::variate_generator;
27 using boost::random::uniform_real_distribution;
29 static const char*
function(
"stan::math::rayleigh_rng");
35 variate_generator<RNG&, uniform_real_distribution<> >
36 uniform_rng(rng, uniform_real_distribution<>(0.0, 1.0));
fvar< T > sqrt(const fvar< T > &x)
double rayleigh_rng(const double sigma, RNG &rng)
fvar< T > log(const fvar< T > &x)
bool check_positive(const char *function, const char *name, const T_y &y)
Return true if y is positive.
double uniform_rng(const double alpha, const double beta, RNG &rng)