scipy.stats.trim1

scipy.stats.trim1(a, proportiontocut, tail='right')[source]

Slices off a proportion of items from ONE end of the passed array distribution.

If proportiontocut = 0.1, slices off ‘leftmost’ or ‘rightmost’ 10% of scores. Slices off LESS if proportion results in a non-integer slice index (i.e., conservatively slices off proportiontocut ).

Parameters :

a : array_like

Input array

proportiontocut : float

Fraction to cut off of ‘left’ or ‘right’ of distribution

tail : string, {‘left’, ‘right’}, optional

Defaults to ‘right’.

Returns :

trim1 : ndarray

Trimmed version of array a

Previous topic

scipy.stats.trimboth

Next topic

scipy.stats.f_oneway