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.
|
Modifier and Type | Method and Description |
---|---|
static HarmonicCurveFitter |
create()
Creates a default curve fitter.
|
HarmonicCurveFitter |
withMaxIterations(int newMaxIter)
Configure the maximum number of iterations.
|
HarmonicCurveFitter |
withStartPoint(double[] newStart)
Configure the start point (initial guess).
|
fit
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 iterationsJas4pp 1.5 © Java Analysis Studio for Particle Physics