<< pois_pdf Supplementary distibution functions quantile >>

Grocer >> Supplementary distibution functions > pois_rnd

pois_rnd

Poisson random draws

CALLING SEQUENCE

[y]=pois_rnd(n,lambda)

PARAMETERS

Input

* lambda = mean used for the draws

* n = # of draws

 

Output

* y = a vector of draws

DESCRIPTION

Generates random draws from the Poisson distribution.

NOTES:

Uses naive inversion method. mean = lambda, variance = lambda

EXAMPLE

x=pois_rnd(10,2)

AUTHOR

Eric Dubois 2002

Report an issue
<< pois_pdf Supplementary distibution functions quantile >>