# Package org.apache.commons.math.optimization.fitting

This package provides classes to perform curve fitting.

See: Description

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 of `GaussianFunction`.
GaussianFitter | Fits points to a Gaussian function (that is, a `GaussianFunction`).
GaussianFunction | A Gaussian function.
GaussianParametersGuesser | Guesses the parameters (`a`, `b`, `c`, and `d`) of a `ParametricGaussianFunction` 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.
HarmonicFitter.ParametricHarmonicFunction | Parametric harmonic function.
HarmonicFunction | Harmonic function of the form `f (t) = a cos (ω t + φ)`.
ParametricGaussianFunction | A Gaussian function.
PolynomialFitter | This class implements a curve fitting specialized for polynomials.
PolynomialFitter.ParametricPolynomial | Dedicated parametric polynomial class.
WeightedObservedPoint | This class is a simple container for weighted observed point in `curve fitting`.

## Package org.apache.commons.math.optimization.fitting Description

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).