scipy.stats.mstats.tmean

scipy.stats.mstats.tmean(a, limits=None, inclusive=(True, True))

Returns the arithmetic mean of all values in an array, ignoring values strictly outside given limits.

Parameters:

a : array

limits : None or (lower limit, upper limit)

Values in the input array less than the lower limit or greater than the upper limit will be masked out. When limits is None, 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)

A tuple consisting of the (lower flag, upper flag). These flags determine whether values exactly equal to lower or upper are allowed.

Returns:

A float. :

Previous topic

scipy.stats.mstats.tmax

Next topic

scipy.stats.mstats.tmin

This Page

Quick search