commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1145743 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
Date Tue, 12 Jul 2011 19:57:17 GMT
Author: psteitz
Date: Tue Jul 12 19:57:17 2011
New Revision: 1145743

URL: http://svn.apache.org/viewvc?rev=1145743&view=rev
Log:
Updated patch. Fixed variable reference error.  JIRA: MATH-607

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java?rev=1145743&r1=1145742&r2=1145743&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/regression/RegressionResults.java
Tue Jul 12 19:57:17 2011
@@ -157,7 +157,7 @@ public class RegressionResults implement
         }
         double var = this.getVcvElement(index, index);
         if (!Double.isNaN(var) && var > Double.MIN_VALUE) {
-            return FastMath.sqrt(rank);
+            return FastMath.sqrt(var);
         }
         return Double.NaN;
     }
@@ -181,7 +181,7 @@ public class RegressionResults implement
         for (int i = 0; i < this.parameters.length; i++) {
             double var = this.getVcvElement(i, i);
             if (!Double.isNaN(var) && var > Double.MIN_VALUE) {
-                se[i] = FastMath.sqrt(rank);
+                se[i] = FastMath.sqrt(var);
                 continue;
             }
             se[i] = Double.NaN;



Mime
View raw message