I need to calculate averages, standard deviations, medians etc for a bunch of numerical data. Is there a good open source .NET library I can use? I have found NMath but it is not free and may be overkill for my needs.
You have to be careful. There are several ways to compute standard deviation that would give the same answer if floating point arithmetic were perfect. They're all accurate for some data sets, but some are far better than others under some circumstances.
The method I've seen proposed here is the one that is most likely to give bad answers. I used it myself until it crashed on me.
See Comparing three methods of computing standard deviation.
How about http://ilnumerics.net/ or http://numerics.mathdotnet.com/ (merge from http://www.codeplex.com/dnAnalytics)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With