Lucas Lucas - 1 year ago 234
Android Question

Calculate Normal Distribution Android Studio

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.


Answer Source

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);

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download