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

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


        optimizer.setOrthoTolerance(CONVERGENCE);
       
        // Function optimization
        VectorialPointValuePair optimum;
       
        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();
View Full Code Here


    optimizer.setCostRelativeTolerance( CONVERGENCE    );
    optimizer.setParRelativeToleranceCONVERGENCE    );
    optimizer.setOrthoTolerance(        CONVERGENCE    );
   
    // BamFunction optimization
    VectorialPointValuePair optimum = optimizer.optimize(function, target, weight, FIRST_GUESS);
   
    // Covariances and errors
    double[]   fitErrors     = optimizer.guessParametersErrors();
    double[][] fitCovariance = optimizer.getCovariances();
   
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.