Package org.encog.mathutil.matrices.decomposition

Examples of org.encog.mathutil.matrices.decomposition.SingularValueDecomposition


        {1,2,3,4},
        {5,6,7,8},
        {9,10,11,12},
        {13,14,15,16} };
    Matrix matrix = new Matrix(m);
    SingularValueDecomposition svd = new SingularValueDecomposition(matrix);
    Assert.assertEquals(2147483647, (int)(svd.cond()) );
    double[] d = svd.getSingularValues();
   
    Assert.assertEquals(4, d.length);

  }
View Full Code Here


        {1,2,3,4},
        {5,6,7,8},
        {9,10,11,12},
        {13,14,15,16} };
    Matrix matrix = new Matrix(m);
    SingularValueDecomposition svd = new SingularValueDecomposition(matrix);
    Assert.assertEquals(2147483647, (int)(svd.cond()) );
    double[] d = svd.getSingularValues();
   
    Assert.assertEquals(4, d.length);

  }
View Full Code Here

TOP

Related Classes of org.encog.mathutil.matrices.decomposition.SingularValueDecomposition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.