Package org.apache.commons.math.optimization.fitting
This package provides classes to perform curve fitting.
Curve fitting is a special case of a least squares problem
were the parameters are the coefficients of a function f
whose graph y=f(x)
should pass through sample points, and
were the objective function is the squared sum of residuals
f(xi)-yi
for observed points
(xi, yi).
-
Interface Summary Interface Description ParametricRealFunction An interface representing a real function that depends on one independent variable plus some extra parameters. -
Class Summary Class Description CurveFitter Fitter for parametric univariate real functions y = f(x).GaussianDerivativeFunction The derivative ofGaussianFunction
.GaussianFitter Fits points to a Gaussian function (that is, aGaussianFunction
).GaussianFunction A Gaussian function.GaussianParametersGuesser Guesses the parameters (a
,b
,c
, andd
) of aParametricGaussianFunction
based on the specified observed points.HarmonicCoefficientsGuesser This class guesses harmonic coefficients from a sample.HarmonicFitter This class implements a curve fitting specialized for sinusoids.HarmonicFunction Harmonic function of the formf (t) = a cos (ω t + φ)
.ParametricGaussianFunction A Gaussian function.PolynomialFitter This class implements a curve fitting specialized for polynomials.WeightedObservedPoint This class is a simple container for weighted observed point incurve fitting
.