Standard Library function that uses the singular value decomposition method ofleast-squares curve fitting to fit a polynomial function to data.
y
m
Covar
Funct
Singular
Variance
Weight
Yfit
yf = 1
c = SVDFIT(x, y, m, Yfit=yf)
The file containing Funct should reside in the current working directory or in the search path defined by the system variable !Path.
If Funct does not have the file extension .
pro
, it should be compiled before it is called in SVDFIT.See the Standard Library function
cosines.pro
, which defines a basis function of the form: