Search code examples
c#mathnormal-distribution

Is there a c# lib to fit data to normal distribution?


I found a similar question but it has no exact answer.

What I need is given a real world data set: List<double> and assume it fits a normal distribution. I need to get the distribution(the mean and sdv). I am using math.net to calculate data in my application. Can math.net do this and how? Or is there any other C# library can do this?

Thanks a lot.


Solution

  • Wikipedia gives you formulas to calculate the estimates of the normal distribution parameters. The expressions are simple so you actually don't need any third party libraries to perform the calculations.