Return a negative binomial random variate with the specified location and precision parameters using the given random number generator.
mu 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 location parameter |
T_prec | type of precision parameter |
RNG | type of random number generator |
- Parameters
-
mu | (Sequence of) positive location parameter(s) |
phi | (Sequence of) positive precision parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) negative binomial random variate(s)
- Exceptions
-
std::domain_error | if mu or phi are nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 36 of file neg_binomial_2_rng.hpp.