mean_trimmed#
- named_arrays.mean_trimmed(a, q=0.25, axis=None, dtype=None, out=None, keepdims=False)#
Compute the trimmed mean of the given array along the specified axes.
- Parameters:
a (ArrayT) – The input array to compute the trimmed mean of.
q (QuantileT) – The fraction of the largest and smallest elements to remove. Must be between 0 and 1/2. If the specified fraction does not result in an integer number of elements, the number of elements to trim is rounded down.
axis (None | str | Sequence[str]) – The axis or axes along which to compute the trimmed mean.
dtype (None | str | Type | dtype) – The data type of the output
out (None | AbstractExplicitArray) – An optional output array in which to store the results.
keepdims (bool) – If
True, the resulting array will have the same dimensionality.
- Return type:
ArrayT | QuantileT
See also
scipy.stats.trim_mean()equivalent Numpy function
AbstractScalar.mean_trimmed()A method version of this function.