KPG1_POISx

Takes values and returns them with Poisson noise added

Description:

This routine adds or subtracts pseudo-random Poissonian (shot) noise to a series of values. It uses a Box-Mueller algorithm to generate a fairly good normal distribution.

Invocation

CALL KPG1_POISx( EL, VALUES, SEED, STATUS )

Arguments

EL = INTEGER (Given)
The number of values to which to add Poisson noise.
VALUES( EL ) = ? (Given and Returned)
On input these are the value to which noise is to be applied. On return the values have the noise applied.
SEED = REAL (Given & Returned)
The seed for random number generator; updated by the random-number generator.
STATUS = INTEGER (Given)
Global status value.

Notes: