Scythe-1.0.3
template<class RNGTYPE>
unsigned int scythe::rng< RNGTYPE >::rpois ( double  lambda) [inline]

Generate a Poisson distributed random variate.

This function returns a pseudo-random variate drawn from the Poisson distribution with expected number of occurrences lambda.

Parameters:
lambdaThe strictly positive expected number of occurrences.
See also:
ppois(double x, double lambda)
dpois(double x, double lambda)
Exceptions:
scythe_invalid_arg(Level 1)

Referenced by scythe::rng< mersenne >::rnbinom().