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?