Stan Math Library  2.15.0
reverse mode automatic differentiation
Namespaces | Functions
bernoulli_rng.hpp File Reference
#include <boost/random/bernoulli_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <stan/math/prim/scal/err/check_consistent_sizes.hpp>
#include <stan/math/prim/scal/err/check_bounded.hpp>
#include <stan/math/prim/scal/err/check_finite.hpp>
#include <stan/math/prim/scal/err/check_not_nan.hpp>
#include <stan/math/prim/scal/fun/constants.hpp>
#include <stan/math/prim/scal/fun/inv_logit.hpp>
#include <stan/math/prim/scal/fun/log1m.hpp>
#include <stan/math/prim/scal/fun/value_of.hpp>
#include <stan/math/prim/scal/meta/include_summand.hpp>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<class RNG >
int stan::math::bernoulli_rng (double theta, RNG &rng)
 Return pseudorandom Bernoulli draw with specified chance of success using the specified random number generator. More...
 

     [ Stan Home Page ] © 2011–2016, Stan Development Team.