MEAN
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The MEAN function computes the mean of a numeric vector. MEAN calls the IDL function MOMENT.
Syntax
Result = MEAN( X [, /DOUBLE] [, /NAN] )
Return Value
Returns the average value of a set of numbers.
Arguments
X
An n-element, integer, double-precision or floating-point vector.
Keywords
DOUBLE
If this keyword is set, computations are done in double precision arithmetic.
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, MEANABSDEV, MOMENT, STDDEV, SKEWNESS, VARIANCE