The MEANABSDEV function computes the mean absolute deviation of an n-element vector.
Result = MEANABSDEV( X [, /DOUBLE] [, /MEDIAN] [, /NAN] )
Returns the average deviation.
An n-element, floating-point or double-precision vector.
Set this keyword to force computations to be done in double precision arithmetic and to return 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). This has no effect if the MEDIAN keyword is set.
Set this keyword to return the average deviation from the median. By default, if MEDIAN is not set, MEANABSDEV will return the average deviation from the mean.
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 for more information on IEEE floating-point values.)
; Define an n-element vector: x = [1, 1, 1, 2, 5] ; Compute average deviation from the mean: result = MEANABSDEV(x) ; Print the result: PRINT, result
KURTOSIS, MEAN, MOMENT, STDDEV, SKEWNESS, VARIANCE