scipy.stats.tmean

scipy.stats.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.mode

Next topic

scipy.stats.tvar

This Page

Quick search