scipy.stats.mstats.tmean(a, limits=None, inclusive=(True, True), axis=None)[source]

Compute the trimmed mean.


a : array_like

Array of values.

limits : None or (lower limit, upper limit), optional

Values in the input array less than the lower limit or greater than the upper limit will be ignored. When limits is None (default), then all values are used. Either of the limit values in the tuple can also be None representing a half-open interval.

inclusive : (bool, bool), optional

A tuple consisting of the (lower flag, upper flag). These flags determine whether values exactly equal to the lower or upper limits are included. The default value is (True, True).

axis : int or None, optional

Axis along which to operate. If None, compute over the whole array. Default is None.


tmean : float


For more details on tmean, see stats.tmean.