![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
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.
| T_loc | type of location parameter |
| T_prec | type of precision parameter |
| RNG | type of random number generator |
| mu | (Sequence of) positive location parameter(s) |
| phi | (Sequence of) positive precision parameter(s) |
| rng | random number generator |
| 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.