KPG_NORVx

Returns a supplied value with normally distributed noise added

Description:

This routine takes as input a number and returns a value that is the input number plus or minus a random amount of normally distributed noise. It uses a Box-Mueller algorithm to generate a fairly good normal distribution.

Invocation

CALL KPG_NORVx( BAD, EL, INARR, SIGMA, SEED, OUTARR, STATUS )

Arguments

BAD = LOGICAL (Given)
Whether checks for bad pixels should be performed.
EL = INTEGER (Given)
Number of pixels in the array.
INARR( EL ) = ? (Given)
Input array to which noise is to be added to each pixel.
SIGMA = ? (Given)
Standard deviation of the normal distribution.
SEED = REAL (Given & Returned)
Seed for the random-number generator SLA_RANDOM.
OUTARR( EL ) = ? (Returned)
Output array which has random noise added.
STATUS = INTEGER (Given)
Global status value.

Notes: