This is documentation for an old release of SciPy (version 0.10.0). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.stats.mstats.trimboth
-
scipy.stats.mstats.trimboth(data, proportiontocut=0.2, inclusive=(True, True), axis=None)
Trims the data by masking the int(proportiontocut*n) smallest and
int(proportiontocut*n) largest values of data along the given axis, where n
is the number of unmasked values before trimming.
Parameters : | data : ndarray
- proportiontocut : {0.2, float} optional
Percentage of trimming (as a float between 0 and 1).
If n is the number of unmasked values before trimming, the number of
values after trimming is:
- inclusive : {(True, True) tuple} optional
Tuple indicating whether the number of data being masked on each side
should be rounded (True) or truncated (False).
- axis : {None, integer}, optional
Axis along which to perform the trimming.
If None, the input array is first flattened.
|