Compute the trimmed mean.
The trimmed mean of x is defined as the mean of x excluding the highest and lowest p percent of the data.
For examplemean ([-inf, 1:9, inf])
is NaN, whiletrimmean ([-inf, 1:9, inf], 10)
excludes the infinite values, which make the result 5.See also: mean