function norm

Normalizes X.

Syntax
result = norm(X [, /unity] [, /total] [, /average])

Arguments
X:   A matrix.


Switches
/unity:   All values are scaled to be between 0 and 1 (default)
/total:   The total flux in the resulting array will be 1
/average:   The average flux in the resulting array will be 1