commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r731087 - in /commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression: GLSMultipleLinearRegression.java OLSMultipleLinearRegression.java
Date Sat, 03 Jan 2009 20:50:36 GMT
Author: psteitz
Date: Sat Jan  3 12:50:35 2009
New Revision: 731087

URL: http://svn.apache.org/viewvc?rev=731087&view=rev
Log:
Changed to use updated decomp API.

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java?rev=731087&r1=731086&r2=731087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java
Sat Jan  3 12:50:35 2009
@@ -79,7 +79,7 @@
      */
     protected RealMatrix getOmegaInverse() {
         if (OmegaInverse == null) {
-            OmegaInverse = new LUSolver(new LUDecompositionImpl(Omega)).getInverse();
+            OmegaInverse = new LUDecompositionImpl(Omega).getSolver().getInverse();
         }
         return OmegaInverse;
     }
@@ -95,7 +95,7 @@
         RealMatrix OI = getOmegaInverse();
         RealMatrix XT = X.transpose();
         RealMatrix XTOIX = XT.multiply(OI).multiply(X);
-        RealMatrix inverse = new LUSolver(new LUDecompositionImpl(XTOIX)).getInverse();
+        RealMatrix inverse = new LUDecompositionImpl(XTOIX).getSolver().getInverse();
         return inverse.multiply(XT).multiply(OI).multiply(Y);
     }
 

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java?rev=731087&r1=731086&r2=731087&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
Sat Jan  3 12:50:35 2009
@@ -108,7 +108,7 @@
      */
     protected RealMatrix calculateBetaVariance() {
         RealMatrix XTX = X.transpose().multiply(X);
-        return new LUSolver(new LUDecompositionImpl(XTX)).getInverse();
+        return new LUDecompositionImpl(XTX).getSolver().getInverse();
     }
     
 



Mime
View raw message