Class MatrixTests


  • public class MatrixTests
    extends java.lang.Object
    MatrixData

    Copyright: 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 Detail

      • MatrixTests

        public MatrixTests()
    • 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()