|
The
MOMENT function computes the
mean,
variance,
skewness, and
kurtosis of a sample
population contained in an
n
-element vector
X
. If the vector contains
n
identical elements, MOMENT computes the mean and variance, and returns the IEEE value NaN for the skewness 5and kurtosis, which are not defined. (See
Special Floating-Point Values
.)
When x = ( x 0 , x 1 , x 2 , ..., xn -1 ), the various moments are defined as follows:
This routine is written in the IDL language. Its source code can be found in the file
moment.pro
in the
lib
subdirectory of the IDL distribution.
Set this keyword to cause the routine to check for occurrences of the IEEE floating-point value NaN in the input data. Elements with the value NaN are treated as missing data. (See Special Floating-Point Values for more information on IEEE floating-point values.)