public ChiSquared ( int df ) : double | ||
df | int | Degrees of freedom (the number of independently /// chosen normally-distributed numbers). |
return | double |
public double ChiSquared(int df)
{
if (df <= 0) {
throw new ArgumentException("df (" + df + ") is not greater than 0");
}
return this.Gamma(df / 2.0, 2);
}