Statistics::MeanT Function

double MeanT(TVec *Data, double Alpha = 0.05);

Trimmed mean.

#NameTypeDescription
1DataTVec *Data. An exception is raised if Data vector is complex.
2Alpha = 0.05doubleDefines the percent of value excluded from mean calculation. If Alpha parameter is omitted, the default value 0.05 is used (meaning highest 2.5% and lowest 2.5% of data will be excluded). Alpha paramater must lie on the interval [0,1) otherwise an exception is raised.

Returns: the mean of all Data vector elements, excluding highest and lowest 100*Alpha/2 percents of value.

See Also: Statistics::MeanH, Statistics::MeanG
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler