Package org.apache.commons.math4.legacy.fitting
Classes to perform curve fitting.
Curve fitting is a special case of a leastsquares problem
where 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 the residuals
\( f(x_i)  y_i \) for observed points \( (x_i, y_i) \).

Class Summary Class Description AbstractCurveFitter Base class that contains common code for fitting parametric univariate real functionsy = f(p_{i};x)
, wherex
is the independent variable and thep_{i}
are the parameters.AbstractCurveFitter.TheoreticalValuesFunction Vector function for computing function theoretical values.GaussianCurveFitter Fits points to aGaussian
function.GaussianCurveFitter.ParameterGuesser Guesses the parametersnorm
,mean
, andsigma
of aGaussian.Parametric
based on the specified observed points.HarmonicCurveFitter Fits points to aharmonic oscillator
function.HarmonicCurveFitter.ParameterGuesser This class guesses harmonic coefficients from a sample.PolynomialCurveFitter Fits points to apolynomial
function.SimpleCurveFitter Fits points to a userdefinedfunction
.SimpleCurveFitter.ParameterGuesser Guesses the parameters.WeightedObservedPoint This class is a simple container for weighted observed point incurve fitting
.WeightedObservedPoints Simple container for weighted observed points used incurve fitting
algorithms.