From bede64cd3f24876313454af66a51d2b205d1a02d Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 3 Jan 2009 20:50:35 +0000 Subject: [PATCH] Changed to use updated decomp API. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@731087 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/stat/regression/GLSMultipleLinearRegression.java | 4 ++-- .../math/stat/regression/OLSMultipleLinearRegression.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java b/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java index db6cd0870..cd9ec1bab 100644 --- a/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java +++ b/src/java/org/apache/commons/math/stat/regression/GLSMultipleLinearRegression.java @@ -79,7 +79,7 @@ public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegressio */ 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 @@ public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegressio 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); } diff --git a/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java b/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java index 6938173dd..3af000366 100644 --- a/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java +++ b/src/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java @@ -108,7 +108,7 @@ public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegressio */ protected RealMatrix calculateBetaVariance() { RealMatrix XTX = X.transpose().multiply(X); - return new LUSolver(new LUDecompositionImpl(XTX)).getInverse(); + return new LUDecompositionImpl(XTX).getSolver().getInverse(); }