Class PLSRegressionModelCalculator
- java.lang.Object
-
- com.actelion.research.calc.regression.ARegressionMethod<ParameterPLS>
-
- com.actelion.research.calc.regression.linear.pls.PLSRegressionModelCalculator
-
- All Implemented Interfaces:
ICalculateModel
,ICalculateYHat
- Direct Known Subclasses:
PLSBoxCoxY
public class PLSRegressionModelCalculator extends ARegressionMethod<ParameterPLS>
PLSRegressionModelCalculatorCopyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.
- Version:
- 1.0 Aug 14, 2015 MvK Start implementation
- Author:
- Modest von Korff
-
-
Field Summary
Fields Modifier and Type Field Description static int
FACTORS
-
Fields inherited from class com.actelion.research.calc.regression.ARegressionMethod
parameterRegressionMethod
-
-
Constructor Summary
Constructors Constructor Description PLSRegressionModelCalculator()
PLSRegressionModelCalculator(ParameterPLS parameterPLS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelError
calculateModelErrorTest(Matrix Xtest, Matrix Ytest)
double
calculateYHat(byte[] arrRow)
double
calculateYHat(double[] arrRow)
double
calculateYHat(int[] arrRow)
Matrix
calculateYHat(Matrix Xtest)
With centering of Xtest with Xtrain.Matrix
calculateYHatWithoutDeCentering(Matrix Xtest)
Matrix
createModel(ModelXYIndex dataXYTrain)
Matrix
getB()
Matrix
getT(Matrix XPreprocessed)
Matrix
getXvar()
Matrix
getYHat()
void
setCenterData(boolean centerData)
void
setFactors(int factors)
-
Methods inherited from class com.actelion.research.calc.regression.ARegressionMethod
decodeProperties2Parameter, getName, getParameter, getProgressController, getProperties, setParameterRegressionMethod, setProgressController
-
-
-
-
Field Detail
-
FACTORS
public static final int FACTORS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PLSRegressionModelCalculator
public PLSRegressionModelCalculator()
-
PLSRegressionModelCalculator
public PLSRegressionModelCalculator(ParameterPLS parameterPLS)
-
-
Method Detail
-
setCenterData
public void setCenterData(boolean centerData)
- Parameters:
centerData
- the centerData to set
-
setFactors
public void setFactors(int factors)
-
createModel
public Matrix createModel(ModelXYIndex dataXYTrain)
-
calculateYHat
public Matrix calculateYHat(Matrix Xtest)
With centering of Xtest with Xtrain.- Parameters:
Xtest
-- Returns:
-
calculateYHat
public double calculateYHat(double[] arrRow)
-
calculateYHat
public double calculateYHat(byte[] arrRow)
-
calculateYHat
public double calculateYHat(int[] arrRow)
-
calculateModelErrorTest
public ModelError calculateModelErrorTest(Matrix Xtest, Matrix Ytest)
-
getB
public Matrix getB()
- Returns:
- the b
-
getXvar
public Matrix getXvar()
- Returns:
- the xvar
-
getYHat
public Matrix getYHat()
- Returns:
- the yHat
-
-