Calculates the first 4 moments of array elements: mean, variance, skewness, kurtosis.
[in] Array of values.
[out] Variable for the mean (1st moment).
[out] Variable for the variance (2nd moment).
[out] Variable for the skewness (3rd moment).
[out] Variable for the kurtosis (4th moment).
[in] Initial index for calculation.
[in] The number of elements for calculation.
Returns true if the moments have been calculated successfully, otherwise false.