Skip to content

harmean

Harmonic mean.

v = harmean(number1, number2, ...)

Returns the harmonic mean — the reciprocal of the arithmetic mean of reciprocals. Useful for averaging rates and ratios. All values must be positive.

harmean(1, 2, 4) % 1.714
  • geomean — Geometric mean.
  • average — Arithmetic mean of numeric arguments (Excel-compatible).