![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return a negative binomial random variate with the specified shape and inverse scale parameters using the given random number generator.
alpha and beta can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
| T_shape | type of shape parameter |
| T_inv | type of inverse scale parameter |
| RNG | type of random number generator |
| alpha | (Sequence of) positive shape parameter(s) |
| beta | (Sequence of) positive inverse scale parameter(s) |
| rng | random number generator |
| std::domain_error | if alpha or beta are nonpositive |
| std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 35 of file neg_binomial_rng.hpp.