public class HarmonicCurveFitter extends AbstractCurveFitter
harmonic oscillator
function.
initial guess values
must be passed
in the following order:
Modifier and Type | Class | Description |
---|---|---|
static class |
HarmonicCurveFitter.ParameterGuesser |
This class guesses harmonic coefficients from a sample.
|
AbstractCurveFitter.TheoreticalValuesFunction
Modifier and Type | Method | 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, getOptimizer
public 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 AbstractCurveFitter
observations
- Sample points.points
.Copyright © 2016–2018 Hipparchus.org. All rights reserved.