You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2009/04/11 17:33:38 UTC
svn commit: r764210 -
/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java
Author: psteitz
Date: Sat Apr 11 15:33:38 2009
New Revision: 764210
URL: http://svn.apache.org/viewvc?rev=764210&view=rev
Log:
Dropped extraneous parens.
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java?rev=764210&r1=764209&r2=764210&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/inference/TTestImpl.java Sat Apr 11 15:33:38 2009
@@ -1043,7 +1043,7 @@
double v2, double n1, double n2)
throws MathException {
double t = Math.abs(homoscedasticT(m1, m2, v1, v2, n1, n2));
- double degreesOfFreedom = (n1 + n2 - 2);
+ double degreesOfFreedom = n1 + n2 - 2;
distribution.setDegreesOfFreedom(degreesOfFreedom);
return 2.0 * distribution.cumulativeProbability(-t);
}