### 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.gmean

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

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

  That is: n-th root of (x1 * x2 * ... * xn)

  Parameters: | a : array of positive values axis : int or None zero_sub : value to substitute for zero values. Default is 0.
  Returns: | The geometric 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`) »