1 #ifndef STAN_MATH_PRIM_SCAL_PROB_FRECHET_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_FRECHET_RNG_HPP 17 #include <boost/random/weibull_distribution.hpp> 18 #include <boost/random/variate_generator.hpp> 28 using boost::variate_generator;
29 using boost::random::weibull_distribution;
31 static const char*
function(
"frechet_rng");
38 variate_generator<RNG&, weibull_distribution<> >
39 weibull_rng(rng, weibull_distribution<>(alpha, 1.0/sigma));
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
double frechet_rng(double alpha, double sigma, RNG &rng)
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
double weibull_rng(double alpha, double sigma, RNG &rng)
Return a pseudorandom Weibull variate with given shape and scale using the specified random number ge...
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.