维基百科列出了一系列用于计算正态分布累积概率的数字方法。然而,有了Apache Commons Math,你就无需了解它们中的任何一个,因为该库只需为您完成任务:
NormalDistribution normal = new NormalDistribution(mu, sigma);
normal.cumulativeProbability(x);
为了某项研究项目,我想了解Apache Commons Math用于逼近正态分布累积值的方法。有人知道吗?他们是使用维基百科列出的方法还是实现了不同的方法?
special
包中Erf
的实现来了解Commons Math的具体功能。它确实使用了维基百科Erf文章中提到的方法。[1]:http://en.wikipedia.org/wiki/Error_function#Approximation_with_elementary_functions - Phil Steitz