Return a matrix with Poisson distributed random elements with mean value parameter given by the first argument, l.
The arguments are handled the same as the arguments for rand
, except
for the argument l.
Five different algorithms are used depending on the range of l and whether or not l is a scalar or a matrix.
W.H. Press, et al., Numerical Recipes in C, Cambridge University Press, 1992.
W.H. Press, et al., Numerical Recipes in C, Cambridge University Press, 1992.
E. Stadlober, et al., WinRand source code, available via FTP.
E. Stadlober, et al., WinRand source code, available via FTP, or H. Zechner, Efficient sampling from continuous and discrete unimodal distributions, Doctoral Dissertation, 156pp., Technical University Graz, Austria, 1994.
L. Montanet, et al., Review of Particle Properties, Physical Review D 50 p1284, 1994.
The class of the value returned can be controlled by a trailing
"double"
or "single"
argument. These are the only valid
classes.
See also: rand, randn, rande, randg.
Package: octave