Package org.apache.commons.math.optimization.general

Examples of org.apache.commons.math.optimization.general.LevenbergMarquardtOptimizer.guessParametersErrors()


       
        optimum = optimizer.optimize(function, targets, weights, FIRST_GUESS);
       
        // Covariances and errors
        logger.debug("Fit: Calculate errors and covariances.");
        double[]   fitErrors     = optimizer.guessParametersErrors();
        double[][] fitCovariance = optimizer.getCovariances();
       
        // Calculate chi square
        double[] bestFit = optimum.getValue();
        double chi2 = 0.0;
View Full Code Here


   
    // BamFunction optimization
    VectorialPointValuePair optimum = optimizer.optimize(function, target, weight, FIRST_GUESS);
   
    // Covariances and errors
    double[]   fitErrors     = optimizer.guessParametersErrors();
    double[][] fitCovariance = optimizer.getCovariances();
   
    // Output values
    FitResults fitResults = new FitResults(
        optimum.getValue(), optimum.getPoint(), fitErrors, fitCovariance);
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.