Question

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 can this be done?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top