Package com.actelion.research.calc
Class MatrixTests
- java.lang.Object
-
- com.actelion.research.calc.MatrixTests
-
public class MatrixTests extends java.lang.ObjectMatrixDataCopyright: 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 Sep 13, 2013 MvK Start implementation
- Author:
- Modest von Korff
-
-
Constructor Summary
Constructors Constructor Description MatrixTests()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckForEigenvaluesAndEigenvectors()Checks for the correctness of the Eigenvector and Eigenvalues calculation.static ModelXYgetMultivariate(int rows, int cols)Creates a multivariate test dataset The regression factor factor is the col number, starting with 1.protected static Matrixpls(Matrix X, Matrix Y, java.lang.String sPatternHeaderX, int iNumPrincipalComponents, boolean bLogarithm, java.lang.String sFileDataSummaryOut)static Matrixtest00()static Matrixtest01()static Matrixtest02()static Matrixtest03()static Matrixtest04()static Matrixtest05()static Matrixtest06()static Matrixtest07()static Matrixtest08()static MatrixtestDescriptor01X()static MatrixtestDescriptor01Y()static MatrixtestLonglyX()http://itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.datstatic MatrixtestLonglyY()http://www.itl.nist.gov/div898/strd/lls/data/Longley.shtml Y Matrixstatic voidtestMain01()static voidtestMainHenrion()static MatrixtestMatrix_XWine()static MatrixtestMatrix_YWine()Validation data for PLS from Abdi, PLS, Encyclopedia of Social Sciences Reasearch Methods (2003).static MatrixtestMatrix02()static MatrixtestMatrixHenrion01()static MatrixtestSimple1X(int cols)static MatrixtestSimple1Y()static MatrixtestSimple2X(int cols)
-
-
-
Method Detail
-
getMultivariate
public static ModelXY getMultivariate(int rows, int cols)
Creates a multivariate test dataset The regression factor factor is the col number, starting with 1.- Parameters:
rows-cols-- Returns:
-
test00
public static Matrix test00()
-
test01
public static Matrix test01()
-
test02
public static Matrix test02()
-
test03
public static Matrix test03()
-
test04
public static Matrix test04()
-
test05
public static Matrix test05()
-
test06
public static Matrix test06()
-
test07
public static Matrix test07()
-
test08
public static Matrix test08()
-
testMatrix02
public static Matrix testMatrix02()
-
testMatrix_YWine
public static Matrix testMatrix_YWine()
Validation data for PLS from Abdi, PLS, Encyclopedia of Social Sciences Reasearch Methods (2003).- Returns:
- Matrix
-
testMatrix_XWine
public static Matrix testMatrix_XWine()
-
testMatrixHenrion01
public static Matrix testMatrixHenrion01()
-
testLonglyY
public static Matrix testLonglyY()
http://www.itl.nist.gov/div898/strd/lls/data/Longley.shtml Y Matrix- Returns:
- Y matrix
-
testLonglyX
public static Matrix testLonglyX()
http://itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Longley.dat- Returns:
-
testDescriptor01X
public static Matrix testDescriptor01X()
-
testDescriptor01Y
public static Matrix testDescriptor01Y()
-
testSimple1Y
public static Matrix testSimple1Y()
-
testSimple1X
public static Matrix testSimple1X(int cols)
-
testSimple2X
public static Matrix testSimple2X(int cols)
-
checkForEigenvaluesAndEigenvectors
public static boolean checkForEigenvaluesAndEigenvectors()
Checks for the correctness of the Eigenvector and Eigenvalues calculation. The test relies on the X V = V E equation (Henrion^2 (1995),p219). X is the symmetric original matrix. V is the diagonal matrix of the eigenvalues and E is the matrix of the corresponding eigenvectors.- Returns:
- true if the check is ok.
-
pls
protected static Matrix pls(Matrix X, Matrix Y, java.lang.String sPatternHeaderX, int iNumPrincipalComponents, boolean bLogarithm, java.lang.String sFileDataSummaryOut)
-
testMain01
public static void testMain01()
-
testMainHenrion
public static void testMainHenrion()
-
-