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.


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.


A float. :

Previous topic


Next topic


This Page

Quick search