【发布时间】:2013-02-24 17:14:24
【问题描述】:
我正在使用 Apache Commons Math 计算向量的 SD。问题:我得到的值与手工不同
DescriptiveStatistics stats = new DescriptiveStatistics();
stats.addValue(value1);
...
stats.addValue(value8);
stats.getStandardDeviation();
例如,取值 [1699.0, 1819.0, 1699.0, 1719.0, 1689.0, 1709.0, 1819.0, 1689.0]。 SD 应为 52.067,但 Commons Math = 55.662。
我做错了什么?
【问题讨论】:
标签: java math apache-commons apache-commons-math