使用Apache Commons Math,我如何从一系列数字中获取中位数?
Commons Math用户指南说
我看到
DescriptiveStatistics
支持中位数,但DescriptiveStatistics的JavaDocs没有提到它。它确实提到了几何平均值,这与中位数是相同的吗?我看到
getPercentile(double)
。 getPercentile(50)
是否等同于中位数?