Package de.lmu.ifi.dbs.elki.math.linearalgebra.fitting

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.fitting.LevenbergMarquardtMethod.iterate()


    }
    double[] params = { mean, stddevq, 1 };
    boolean[] dofit = { true, true, false };
    LevenbergMarquardtMethod fit = new LevenbergMarquardtMethod(new GaussianFittingFunction(), params, dofit, testx, testy, s);
    for(int i = 0; i < 50; i++) {
      fit.iterate();
    }
    double[] ps = fit.getParams();
    // compare results.
    double[] should = { 0.152986763079, 1.00115077, 1 };
    assertEquals("Mean doesn't match.", should[0], ps[0], 0.0001);
View Full Code Here


    }
    double[] params = { mean, stddevq, 1 };
    boolean[] dofit = { true, true, false };
    LevenbergMarquardtMethod fit = new LevenbergMarquardtMethod(new GaussianFittingFunction(), params, dofit, testx, testy, s);
    for(int i = 0; i < 50; i++) {
      fit.iterate();
    }
    double[] ps = fit.getParams();
    // compare results.
    double[] should = { 0.1557811515, 1.006463733, 1 };
    assertEquals("Mean doesn't match.", should[0], ps[0], 0.0001);
View Full Code Here

    }
    double[] params = { mean, stddevq, 1 };
    boolean[] dofit = { true, true, false };
    LevenbergMarquardtMethod fit = new LevenbergMarquardtMethod(new GaussianFittingFunction(), params, dofit, testx, testy, s);
    for(int i = 0; i < 50; i++) {
      fit.iterate();
    }
    double[] ps = fit.getParams();
    // compare results.
    double[] should = { 0.152986763079, 1.00115077, 1 };
    assertEquals("Mean doesn't match.", should[0], ps[0], 0.0001);
View Full Code Here

    }
    double[] params = { mean, stddevq, 1 };
    boolean[] dofit = { true, true, false };
    LevenbergMarquardtMethod fit = new LevenbergMarquardtMethod(new GaussianFittingFunction(), params, dofit, testx, testy, s);
    for(int i = 0; i < 50; i++) {
      fit.iterate();
    }
    double[] ps = fit.getParams();
    // compare results.
    double[] should = { 0.1557811515, 1.006463733, 1 };
    assertEquals("Mean doesn't match.", should[0], ps[0], 0.0001);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.