2016-07-22 50 views
-1

我想知道我可以计算一个数正态分布,这样在C#:计算正态分布的Android工作室

double result = Chart1.DataManipulator.Statistics.NormalDistribution(1.96); 

我搜索,我发现了大约一个nextGaussian的事情,但我不能了解它与正态分布函数的关系。

由于

回答

0

我不熟悉的特定C#包,但apache的commons math package具有用于容易地计算不同的概率分布,其中包括标准正态分布函数的广泛支持。

NormalDistribution ndist=new NormalDistribution(); double result=ndist.cumulativeProbability(1.96);

+0

是啊,我下载了,但我找不到如何在Android Studio中使用它......你能帮助?谢谢@kasperjj – Lucas

+1

添加:“编译组:'org.apache.commons',名称:'commons-math',版本:'2.2'”到您的gradle:请参阅http://mvnrepository.com/artifact/org.apache .commons /公地数学/ 2.2 –