public class HarmonicCurveFitter extends AbstractCurveFitter
harmonic oscillator
function.
initial guess values must be passed
in the following order:
| Modifier and Type | Class and Description |
|---|---|
static class |
HarmonicCurveFitter.ParameterGuesser
This class guesses harmonic coefficients from a sample.
|
AbstractCurveFitter.TheoreticalValuesFunction| Modifier and Type | Method and Description |
|---|---|
static HarmonicCurveFitter |
create()
Creates a default curve fitter.
|
protected LeastSquaresProblem |
getProblem(Collection<WeightedObservedPoint> observations)
Creates a least squares problem corresponding to the appropriate curve.
|
HarmonicCurveFitter |
withMaxIterations(int newMaxIter)
Configure the maximum number of iterations.
|
HarmonicCurveFitter |
withStartPoint(double[] newStart)
Configure the start point (initial guess).
|
fit, getOptimizerpublic static HarmonicCurveFitter create()
HarmonicCurveFitter.ParameterGuesser
computed automatically, and the maximum number of iterations of the
optimization algorithm is set to Integer.MAX_VALUE.withStartPoint(double[]),
withMaxIterations(int)public HarmonicCurveFitter withStartPoint(double[] newStart)
newStart - new start point (initial guess)public HarmonicCurveFitter withMaxIterations(int newMaxIter)
newMaxIter - maximum number of iterationsprotected LeastSquaresProblem getProblem(Collection<WeightedObservedPoint> observations)
getProblem in class AbstractCurveFitterobservations - Sample points.points.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.