Re: [Needed]Curve Fitting
In least squares fitting, a polynomial is found for which the sum of the squares of the errors between the data points and the polynomial is minimal.
Just a small addition. These functions need not be polynomials. You may also have data which
you know is generated by a sum of sine functions or exponentials. In that case you can use
(non-linear) least-square fitting to find the best (or at least a close enough) fit among functions
of this type.
The general procedure consists of the following steps
1) decide which type of functions you want to use as candidates
2) decide how you define the distance between the data and these functions
3) find a close-enough functions from these candidates.
1) are often polynomials of a fixed degree, ration functions, sine waves etc.
2) usually l2-norm (Euclidean distance for functions)
3) there are many open source libraries/programs for linear/non-linear least square fitting