Class HarmonicCurveFitter
- java.lang.Object
-
- org.apache.commons.math4.legacy.fitting.AbstractCurveFitter
-
- org.apache.commons.math4.legacy.fitting.SimpleCurveFitter
-
- org.apache.commons.math4.legacy.fitting.HarmonicCurveFitter
-
public final class HarmonicCurveFitter extends SimpleCurveFitter
Fits points to aharmonic oscillator
function.
Theinitial guess values
must be passed in the following order:- Amplitude
- Angular frequency
- phase
- Since:
- 3.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HarmonicCurveFitter.ParameterGuesser
This class guesses harmonic coefficients from a sample.-
Nested classes/interfaces inherited from class org.apache.commons.math4.legacy.fitting.AbstractCurveFitter
AbstractCurveFitter.TheoreticalValuesFunction
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HarmonicCurveFitter
create()
Creates a default curve fitter.-
Methods inherited from class org.apache.commons.math4.legacy.fitting.SimpleCurveFitter
create, create, getProblem, withMaxIterations, withStartPoint
-
Methods inherited from class org.apache.commons.math4.legacy.fitting.AbstractCurveFitter
fit, getOptimizer
-
-
-
-
Method Detail
-
create
public static HarmonicCurveFitter create()
Creates a default curve fitter. The initial guess for the parameters will beHarmonicCurveFitter.ParameterGuesser
computed automatically, and the maximum number of iterations of the optimization algorithm is set toInteger.MAX_VALUE
.- Returns:
- a curve fitter.
- See Also:
SimpleCurveFitter.withStartPoint(double[])
,SimpleCurveFitter.withMaxIterations(int)
-
-