Chi-square distribution with c#?
I would like to create an algorithm in C# that implements the chi-square distribution. I
I have found a bunch of implementations on the internet but all of them use a lot of framework and I would like somthing simpler for a project at school.
How ca开发者_开发知识库n this be done?
A couple of years ago I ported the Perl module Statistics::Distributions to JavaScript. Among other distributions, it implements chi-square. It is a very lightweight and simple. You can find that implementation at http://statistics-distributions-js.googlecode.com/files/statistics-distributions-001.js.
It shouldn't be too hard to port that to C#. Or you can try something like http://jint.codeplex.com/ and see if you can just run the JavaScript directly on .NET.
精彩评论