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

◆ poisson_rng()

template<typename T_rate , class RNG >
VectorBuilder< true, int, T_rate >::type stan::math::poisson_rng ( const T_rate &  lambda,
RNG &  rng 
)
inline

Return a Poisson random variate with specified rate parameter using the given random number generator.

lambda can be a scalar or a one-dimensional container.

Template Parameters
T_ratetype of rate parameter
RNGtype of random number generator
Parameters
lambda(Sequence of) rate parameter(s)
rngrandom number generator
Returns
(Sequence of) Poisson random variate(s)
Exceptions
std::domain_errorif lambda is nonpositive

Definition at line 30 of file poisson_rng.hpp.