mikera.matrixx.algo
Class PLS
- java.lang.Object
-
- mikera.matrixx.algo.PLS
-
- All Implemented Interfaces:
- IPLSResult
public class PLS extends java.lang.Object implements IPLSResult
Algorithm class implementing PLS regression
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static IPLSResultcalculate(AMatrix X, AMatrix Y, int nFactors)AMatrixgetB()Get the matrix of diagonal coefficientsAMatrixgetCoefficients()Get the matrix of regression coefficients B, for the equation: Y = X.Bt+CAVectorgetConstant()Get the regression constant C, for the equation: Y = X.Bt+CAMatrixgetP()Get the loadings matrix for XAMatrixgetQ()Get the loadings matrix for YAMatrixgetT()Get the score matrix for XAMatrixgetW()Get the PLS Weight matrixAMatrixgetX()Get the original input matrix,AMatrixgetY()Get the original output matrix,
-
-
-
Method Detail
-
getX
public AMatrix getX()
Description copied from interface:IPLSResultGet the original input matrix,- Specified by:
getXin interfaceIPLSResult- Returns:
-
getY
public AMatrix getY()
Description copied from interface:IPLSResultGet the original output matrix,- Specified by:
getYin interfaceIPLSResult- Returns:
-
getT
public AMatrix getT()
Description copied from interface:IPLSResultGet the score matrix for X- Specified by:
getTin interfaceIPLSResult- Returns:
-
getP
public AMatrix getP()
Description copied from interface:IPLSResultGet the loadings matrix for X- Specified by:
getPin interfaceIPLSResult- Returns:
-
getQ
public AMatrix getQ()
Description copied from interface:IPLSResultGet the loadings matrix for Y- Specified by:
getQin interfaceIPLSResult- Returns:
-
getW
public AMatrix getW()
Description copied from interface:IPLSResultGet the PLS Weight matrix- Specified by:
getWin interfaceIPLSResult- Returns:
-
getB
public AMatrix getB()
Description copied from interface:IPLSResultGet the matrix of diagonal coefficients- Specified by:
getBin interfaceIPLSResult- Returns:
-
getCoefficients
public AMatrix getCoefficients()
Description copied from interface:IPLSResultGet the matrix of regression coefficients B, for the equation: Y = X.Bt+C- Specified by:
getCoefficientsin interfaceIPLSResult- Returns:
-
getConstant
public AVector getConstant()
Description copied from interface:IPLSResultGet the regression constant C, for the equation: Y = X.Bt+C- Specified by:
getConstantin interfaceIPLSResult- Returns:
-
calculate
public static IPLSResult calculate(AMatrix X, AMatrix Y, int nFactors)
-
-
DMelt 3.0 © DataMelt by jWork.ORG