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
This commit is contained in:
parent
dc68d63d33
commit
bede64cd3f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue