Lucas - 4 months ago 37

Android Question

i wanted to know how i can calculate the normal distribution of a number, like this in C#:

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

I searched and I found about a nextGaussian thing, but I couldn't understand how that is related to the Normal Distribution function.

Thanks

Answer

I'm not familiar with the specific C# package, but the apache commons math package has extensive support for easily calculating different probability distributions, including the standard normal distribution function.

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

Source (Stackoverflow)

Comments