Package org.encog.mathutil.matrices.decomposition

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


        {21,22,23,24},
        {25,27,28,29},
        {37,33,31,30} };
    Matrix matrix2 = new Matrix(m2);
   
    CholeskyDecomposition c = new CholeskyDecomposition(matrix1);
    c.solve(matrix2);

    Matrix mx = c.getL();
   
    Assert.assertEquals(1.0, mx.get(0,0));
    Assert.assertEquals(1.0, mx.get(1,1));
    Assert.assertEquals(1.0, mx.get(2,2));
    Assert.assertEquals(4, mx.getRows());
View Full Code Here


        {21,22,23,24},
        {25,27,28,29},
        {37,33,31,30} };
    Matrix matrix2 = new Matrix(m2);
   
    CholeskyDecomposition c = new CholeskyDecomposition(matrix1);
    c.solve(matrix2);

    Matrix mx = c.getL();
   
    Assert.assertEquals(1.0, mx.get(0,0));
    Assert.assertEquals(1.0, mx.get(1,1));
    Assert.assertEquals(1.0, mx.get(2,2));
    Assert.assertEquals(4, mx.getRows());
View Full Code Here

  /**
   * Update the covariance.
   * @param covariance The new covariance.
   */
  public void update(final double[][] covariance) {
    this.cd = new CholeskyDecomposition(new Matrix(covariance));
    this.covarianceL = this.cd.getL();
    this.covarianceInv = this.cd.inverseCholesky();
    this.covarianceDet = this.cd.getDeterminant();
  }
View Full Code Here

TOP

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

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.