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

◆ poisson_log_rng()

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

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

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

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

Definition at line 31 of file poisson_log_rng.hpp.