Stats.Winsorized Mean Method
Returns the Winsorized mean of the variable..
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The Winsorized mean of the variable.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double WinsorizedMean(
Vector<double> values,
double percent
)
Parameters
- values Vector<Double>
- A Vector<T> of Double.
- percent Double
- The percentage of extreme values to restrict before evaluating the mean.
Return Value
DoubleThe Winsorized mean of the variable.
Remarks
The Winsorized mean is similar to the trimmed mean. However, instead of discarding the values outside the range, they are set to the highest or lowest value. For example, the Winsorized mean at 5% is calculated by setting all values smaller than the 5th percentile equal to the 5th percentile, and all values larger than the 95th percentile equal to the 95th percentile.