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

◆ neg_binomial_2_log_rng()

template<typename T_loc , typename T_inv , class RNG >
VectorBuilder< true, int, T_loc, T_inv >::type stan::math::neg_binomial_2_log_rng ( const T_loc &  eta,
const T_inv &  phi,
RNG &  rng 
)
inline

Return a negative binomial random variate with the specified log-location and inverse dispersion parameters using the given random number generator.

eta and phi can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.

Template Parameters
T_locType of log-location parameter
T_invType of inverse overdispersion parameter
RNGtype of random number generator
Parameters
eta(Sequence of) positive log-location parameter(s)
phi(Sequence of) positive inverse dispersion parameter(s)
rngrandom number generator
Returns
(Sequence of) negative binomial random variate(s)
Exceptions
std::domain_errorif eta is non-finite or phi is nonpositive
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 37 of file neg_binomial_2_log_rng.hpp.