"Curve fitting is the process of computing the coefficients of a function to approximate the values of a given data set within that function. The approximation is called a "fit". A mathematical function, such as a least squares regression, is used to judge the accuracy of the fit