1 #ifndef STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_LOGIT_RNG_HPP 2 #define STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_LOGIT_RNG_HPP 4 #include <boost/random/bernoulli_distribution.hpp> 5 #include <boost/random/variate_generator.hpp> 31 using boost::variate_generator;
32 using boost::bernoulli_distribution;
36 "Logit transformed probability parameter", t);
38 variate_generator<RNG&, bernoulli_distribution<> >
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
int bernoulli_logit_rng(double t, RNG &rng)
A Bernoulli random number generator which takes as its argument the often more convenient logit-param...
fvar< T > inv_logit(const fvar< T > &x)
Returns the inverse logit function applied to the argument.
int bernoulli_rng(double theta, RNG &rng)
Return pseudorandom Bernoulli draw with specified chance of success using the specified random number...