我正在使用Apache Commons Math计算矢量的SD。问题:我得到不同的值比手工与Apache Commons Math的标准偏差
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。
我在做什么错?
是的,就是这样。谢谢。 – dotwin 2013-03-09 02:07:14