VARIANCE
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The VARIANCE function computes the statistical variance of an n-element vector.
Syntax
Result = VARIANCE( X [, /DOUBLE] [, /NAN] )
Return Value
Returns the floating-point or double-precision statistical variance of the input vector.
Arguments
X
An n-element, floating-point or double-precision vector.
Keywords
DOUBLE
If this keyword is set, VARIANCE performs its computations in double precision arithmetic and returns a double precision result. If this keyword is not set, the computations and result depend upon the type of the input data (integer and float data return float results, while double data returns double results).
NAN
Set this keyword to cause the routine to check for occurrences of the IEEE floating-point values NaN or Infinity in the input data. Elements with the value NaN or Infinity are treated as missing data. (See Special Floating-Point Values (Application Programming) for more information on IEEE floating-point values.)
Examples
IDL prints:
Version History
See Also
KURTOSIS, MEAN, MEANABSDEV, MOMENT, STDDEV, SKEWNESS