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> 25 using boost::variate_generator;
26 using boost::random::uniform_real_distribution;
28 static const char*
function(
"rayleigh_rng");
32 variate_generator<RNG&, uniform_real_distribution<> >
33 uniform_rng(rng, uniform_real_distribution<>(0.0, 1.0));
double rayleigh_rng(double sigma, RNG &rng)
fvar< T > sqrt(const fvar< T > &x)
fvar< T > log(const fvar< T > &x)
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.
double uniform_rng(double alpha, double beta, RNG &rng)