Return a pseudorandom binomial random variable for the given population size and chance of success parameters using the specified random number generator.
beta can be a scalar or a one-dimensional container.
- Template Parameters
-
T_N | Type of population size parameter |
T_theta | Type of change of success parameter |
RNG | class of rng |
- Parameters
-
N | (Sequence of) population size parameter(s) |
theta | (Sequence of) chance of success parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) binomial random variate(s)
- Exceptions
-
std::domain_error | if N is negative |
std::domain_error | if theta is not a valid probability |
Definition at line 32 of file binomial_rng.hpp.