Compute the geometric mean along the specified axis.
Returns the geometric average of the array elements. That is: n-th root of (x1 * x2 * ... * xn)
Parameters : | a : array_like
axis : int, optional, default axis=0
dtype : dtype, optional
|
---|---|
Returns : | gmean : ndarray,
|
See also
Notes
The geometric average is computed over a single dimension of the input array, axis=0 by default, or all values in the array if axis=None. float64 intermediate and return values are used for integer inputs.
Use masked arrays to ignore any non-finite values in the input or that arise in the calculations such as Not a Number and infinity because masked arrays automatically mask any non-finite values.