public class SimpleCurveFitter extends AbstractCurveFitter
function.AbstractCurveFitter.TheoreticalValuesFunction| Modifier and Type | Method | Description | 
|---|---|---|
static SimpleCurveFitter | 
create(ParametricUnivariateFunction f,
      double[] start) | 
 Creates a curve fitter. 
 | 
protected LeastSquaresProblem | 
getProblem(Collection<WeightedObservedPoint> observations) | 
 Creates a least squares problem corresponding to the appropriate curve. 
 | 
SimpleCurveFitter | 
withMaxIterations(int newMaxIter) | 
 Configure the maximum number of iterations. 
 | 
SimpleCurveFitter | 
withStartPoint(double[] newStart) | 
 Configure the start point (initial guess). 
 | 
fit, getOptimizerpublic static SimpleCurveFitter create(ParametricUnivariateFunction f, double[] start)
Integer.MAX_VALUE.f - Function to fit.start - Initial guess for the parameters.  Cannot be null.
 Its length must be consistent with the number of parameters of the
 function to fit.withStartPoint(double[]), 
withMaxIterations(int)public SimpleCurveFitter withStartPoint(double[] newStart)
newStart - new start point (initial guess)public SimpleCurveFitter withMaxIterations(int newMaxIter)
newMaxIter - maximum number of iterationsprotected LeastSquaresProblem getProblem(Collection<WeightedObservedPoint> observations)
getProblem in class AbstractCurveFitterobservations - Sample points.points.Copyright © 2016–2018 Hipparchus.org. All rights reserved.