Statistics::InterQuartile Function

double InterQuartile(TVec *X, TPercentileMethod Method = TPercentileMethod::pctMethodNPlus);

InterQuartile range.

#NameTypeDescription
1XTVec *Data. An exception is raised if X is complex.
2Method = TPercentileMethod::pctMethodNPlusTPercentileMethodDefines one of the available methods for calculating percentile. Software packages use different methods to calculate percentiles. For example, Excel uses pctMethodNMinus, while on the other hand, NCSS's default method is pctMethodNPlus.

Returns: the interquartile range of all X vector elements. The interquartile range is defined as a difference between 75th percentile and 25th percentile of given values.

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