<< nan_grpstats Descriptive Statistics nan_hist2res >>

NaN Toolbox >> NaN Toolbox > Descriptive Statistics > nan_harmmean

nan_harmmean

calculates the harmonic mean of data elements.

Calling Sequence

y = nan_harmmean(x [,DIM [,W]])

Parameters

y:

harmonic mean

DIM:

dimension

default or []:

first DIMENSION, with more than 1 element

W:

weights to compute weighted mean (default: [])

Description

The harmonic mean is the inverse of the mean of the inverse elements.

Is the same as y = nan_mean(x,'H' [,DIM [,W]])

features: - can deal with NaN's (missing values) - weighting of data - dimension argument also in Octave - compatible to Matlab and Octave

See also

Authors

<< nan_grpstats Descriptive Statistics nan_hist2res >>