Package org.hipparchus.fitting
package org.hipparchus.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) \).

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