Catalano.Statistics.Regression
Class PartialLeastSquaresRegression
- java.lang.Object
-
- Catalano.Statistics.Regression.PartialLeastSquaresRegression
-
public class PartialLeastSquaresRegression extends java.lang.ObjectPartial Least-Squares Regression (PLS).
-
-
Constructor Summary
Constructors Constructor and Description PartialLeastSquaresRegression(int factors)Initializes a new instance of the PartialLeastSquaresRegression class.PartialLeastSquaresRegression(int factors, double tolerance)Initializes a new instance of the PartialLeastSquaresRegression class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidCompute(double[][] X, double[][] Y)Compute.double[]getB()double[][]getCoefficients()double[][]getLoadingMatrixX()double[][]getLoadingMatrixY()double[][]getScoreMatrixX()double[][]getScoreMatrixY()doublegetTolerance()Get tolerance.double[][]getW()voidsetTolerance(double tolerance)Set tolerance.
-
-
-
Constructor Detail
-
PartialLeastSquaresRegression
public PartialLeastSquaresRegression(int factors)
Initializes a new instance of the PartialLeastSquaresRegression class.- Parameters:
factors- Factors.
-
PartialLeastSquaresRegression
public PartialLeastSquaresRegression(int factors, double tolerance)Initializes a new instance of the PartialLeastSquaresRegression class.- Parameters:
factors- Factors.tolerance- Tolerance.
-
-
Method Detail
-
getScoreMatrixX
public double[][] getScoreMatrixX()
-
getScoreMatrixY
public double[][] getScoreMatrixY()
-
getLoadingMatrixX
public double[][] getLoadingMatrixX()
-
getLoadingMatrixY
public double[][] getLoadingMatrixY()
-
getW
public double[][] getW()
-
getB
public double[] getB()
-
getCoefficients
public double[][] getCoefficients()
-
getTolerance
public double getTolerance()
Get tolerance.- Returns:
- Tolerance.
-
setTolerance
public void setTolerance(double tolerance)
Set tolerance.- Parameters:
tolerance- Tolerance.
-
Compute
public void Compute(double[][] X, double[][] Y)Compute.- Parameters:
X- Matrix data.Y- Matrix data.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG