Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ beta_neg_binomial_rng()

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_rtype of number of successes parameter
T_alphatype of prior success parameter
T_betatype of prior failure parameter
RNGtype 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)
rngrandom number generator
Returns
(Sequence of) beta-negative binomial random variate(s)
Exceptions
std::domain_errorif r, alpha, or beta are nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 33 of file beta_neg_binomial_rng.hpp.