template<typename T_r , typename T_alpha , typename T_beta , typename RNG >
auto stan::math::beta_neg_binomial_rng |
( |
const T_r & |
r, |
|
|
const T_alpha & |
alpha, |
|
|
const T_beta & |
beta, |
|
|
RNG & |
rng |
|
) |
| |
|
inline |
Return a beta-negative binomial random variate with the given number of successes, prior success, and prior failure parameters, using the given random number generator.
r, alpha, and beta can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.
- Template Parameters
-
T_r | type of number of successes parameter |
T_alpha | type of prior success parameter |
T_beta | type of prior failure parameter |
RNG | type of random number generator |
- Parameters
-
r | (Sequence of) number of successes parameter(s) |
alpha | (Sequence of) prior success parameter(s) |
beta | (Sequence of) prior failure parameter(s) |
rng | random number generator |
- Returns
- (Sequence of) beta-negative binomial random variate(s)
- Exceptions
-
std::domain_error | if r, alpha, or beta are nonpositive |
std::invalid_argument | if non-scalar arguments are of different sizes |
Definition at line 33 of file beta_neg_binomial_rng.hpp.