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

◆ poisson_binomial_rng()

template<typename T_theta , typename RNG , require_eigen_vt< std::is_arithmetic, T_theta > * = nullptr>
int stan::math::poisson_binomial_rng ( const T_theta &  theta,
RNG &  rng 
)
inline

Return a pseudorandom Poisson binomial random variable for the given vector of success parameters using the specified random number generator.

Template Parameters
RNGclass of rng
Parameters
theta(Sequence of) chance of success parameter(s)
rngrandom number generator
Returns
a Poisson binomial distribution random variable
Exceptions
std::domain_errorif theta is not a valid probability

Definition at line 26 of file poisson_binomial_rng.hpp.