### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »
- Statistical functions for masked arrays (`scipy.stats.mstats`) »

# scipy.stats.mstats.hmean

`scipy.stats.mstats.``hmean`(a, axis=0)

  Calculates the harmonic mean of the values in the passed array.

  That is: n / (1/x1 + 1/x2 + ... + 1/xn)

  Parameters: | a : array axis : int or None
  Returns: | The harmonic mean computed over a single dimension of the input array or all : values in the array if axis=None. :

### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Statistical functions (`scipy.stats`) »
- Statistical functions for masked arrays (`scipy.stats.mstats`) »