Statistics Toolbox    
harmmean

Harmonic mean of a sample of data

Syntax

Description

m = harmmean(X) calculates the harmonic mean of a sample. For vectors, harmmean(x) is the harmonic mean of the elements in x. For matrices, harmmean(X) is a row vector containing the harmonic means of each column.

The harmonic mean is

Examples

The sample average is greater than or equal to the harmonic mean.

See Also
mean, median, geomean, trimmean


  gscatter hist