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_t | type of logit-parameterized chance of success parameter |
RNG | type of random number generator |
- Parameters
-
t | (Sequence of) logit-parameterized chance of success parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) Bernoulli random variate(s)
- Exceptions
-
std::domain_error | if logit-parameterized chance of success parameter is not finite |
Definition at line 30 of file bernoulli_logit_rng.hpp.