Return a negative binomial random variate with the specified log-location and inverse dispersion parameters using the given random number generator.
eta and phi can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
- Template Parameters
-
T_loc | Type of log-location parameter |
T_inv | Type of inverse overdispersion parameter |
RNG | type of random number generator |
- Parameters
-
eta | (Sequence of) positive log-location parameter(s) |
phi | (Sequence of) positive inverse dispersion parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) negative binomial random variate(s)
- Exceptions
-
std::domain_error | if eta is non-finite or phi is nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 37 of file neg_binomial_2_log_rng.hpp.