Poisson
Contents
Description
This function returns npts number of random integers having a Poisson distribution with mean mean. Argument seed is optional. If seed is omitted, a different seed is used each time the function is called.
Syntax
dataset poisson(int npts, double mean, int seed)
Parameter
npts
- the number of values in the returned dataset.
mean
- the mean of the returned dataset.
seed
- a positive integer used to initialize the returned pseudorandom dataset.
Return
Returns npts number of random integers having a Poisson distribution with mean mean.
Example
col(1) = poisson(100, 0.5, 2);