Package org.apache.commons.math.optimization.fitting
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).
-
ClassDescriptionFitter for parametric univariate real functions y = f(x).The derivative of
GaussianFunction
.Fits points to a Gaussian function (that is, aGaussianFunction
).A Gaussian function.Guesses the parameters (a
,b
,c
, andd
) of aParametricGaussianFunction
based on the specified observed points.This class guesses harmonic coefficients from a sample.This class implements a curve fitting specialized for sinusoids.Harmonic function of the formf (t) = a cos (ω t + φ)
.A Gaussian function.An interface representing a real function that depends on one independent variable plus some extra parameters.This class implements a curve fitting specialized for polynomials.This class is a simple container for weighted observed point incurve fitting
.