HarmonicCurveFitter and
WeightedObservedPoints instead.@Deprecated public class HarmonicFitter extends CurveFitter<HarmonicOscillator.Parametric>
f (t) = a cos (ω t + φ). They are
searched by a least square estimator initialized with a rough guess
based on integrals.| Modifier and Type | Class and Description |
|---|---|
static class |
HarmonicFitter.ParameterGuesser
Deprecated.
This class guesses harmonic coefficients from a sample.
|
| Constructor and Description |
|---|
HarmonicFitter(MultivariateVectorOptimizer optimizer)
Deprecated.
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
fit()
Deprecated.
Fit an harmonic function to the observed points.
|
double[] |
fit(double[] initialGuess)
Deprecated.
Fit an harmonic function to the observed points.
|
addObservedPoint, addObservedPoint, addObservedPoint, clearObservations, fit, fit, getObservationspublic HarmonicFitter(MultivariateVectorOptimizer optimizer)
optimizer - Optimizer to use for the fitting.public double[] fit(double[] initialGuess)
initialGuess - First guess values in the following order:
public double[] fit()
fit method.NumberIsTooSmallException - if the sample is too short for the
the first guess to be computed.ZeroException - if the first guess cannot be computed because
the abscissa range is zero.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.