Statistics/Chi-squared distribution: Difference between revisions
Content added Content deleted
m (Checking changes are correct.) |
m (Trivial formatting correction.) |
||
Line 236: | Line 236: | ||
private static double gamma(double aX) { |
private static double gamma(double aX) { |
||
if ( aX < 0.5 ) { |
if ( aX < 0.5 ) { |
||
return Math.PI / ( Math.sin(Math.PI * aX |
return Math.PI / ( Math.sin(Math.PI * aX) * gamma(1.0 - aX) ); |
||
} |
} |
||