Get a robust average by trimming extreme values from each end.
Removes ⌊n·p⌋ values from each end, then averages the rest.