Example usage for org.apache.commons.math3.fitting.leastsquares GaussNewtonOptimizer GaussNewtonOptimizer

List of usage examples for org.apache.commons.math3.fitting.leastsquares GaussNewtonOptimizer GaussNewtonOptimizer

Introduction

In this page you can find the example usage for org.apache.commons.math3.fitting.leastsquares GaussNewtonOptimizer GaussNewtonOptimizer.

Prototype

public GaussNewtonOptimizer() 

Source Link

Document

Creates a Gauss Newton optimizer.

Usage

From source file:uk.ac.diamond.scisoft.analysis.optimize.ApacheOptimizer.java

private LeastSquaresOptimizer createLeastSquaresOptimizer() {
    switch (optimizer) {
    case GAUSS_NEWTON:
        return new GaussNewtonOptimizer();
    case LEVENBERG_MARQUARDT:
        return new LevenbergMarquardtOptimizer();
    default:/*from w  w w .  j  a va 2  s .  c  o m*/
        throw new IllegalStateException("Should not be called");
    }
}