Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ bernoulli_logit_rng()

template<typename T_t , class RNG >
VectorBuilder< true, int, T_t >::type stan::math::bernoulli_logit_rng ( const T_t &  t,
RNG &  rng 
)
inline

Return a Bernoulli random variate with logit-parameterized chance of success using the specified random number generator.

t can be a scalar or a one-dimensional container.

Template Parameters
T_ttype of logit-parameterized chance of success parameter
RNGtype of random number generator
Parameters
t(Sequence of) logit-parameterized chance of success parameter(s)
rngrandom number generator
Returns
(Sequence of) Bernoulli random variate(s)
Exceptions
std::domain_errorif logit-parameterized chance of success parameter is not finite

Definition at line 30 of file bernoulli_logit_rng.hpp.