|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./contrib chebfit_v2.pro
Routine Summary 2 routines |
function svdcheb(X, M) | |
svdcheb - chebyshev fitting function for svdfit Used by chebfit_v2 in call to svdfit. |
function chebfit_v2(x, y, deg, [yfit=variable], [rangex=variable], [merr=float/double]) | |
chebfit_v2 - chebyshev polynomial fit to data Do a chebyshev polynomial fit of order deg to the x,y data. |
Routine Details |
svdcheb |
svdcheb - chebyshev fitting function for svdfit
Used by chebfit_v2 in call to svdfit.
Parameters | |
X |
. |
M |
. |
chebfit_v2 |
function chebfit_v2(x, y, deg, [yfit=variable], [rangex=variable], [merr=float/double]) |
chebfit_v2 - chebyshev polynomial fit to data
Do a chebyshev polynomial fit of order deg to the x,y data. Merr are the measurement errors (see idl svdfit routine). Return the coefs for the fit as well as the mapping of the xrange into [-1,1].
SEE ALSO: chebeval() to evaluate the coef.
NOTE: The fitting function svdcheb() is contained in this file. If the routine gives an error that it cannot find svdcheb() just compile this routine explicitly (.compile chebfit_v2).
Contributed By: Karen O'Neil, NRAO-GB
Parameters | |
x |
independent variable |
y |
measured dependent variable, same number of elements as x. |
deg |
degree of fit (ge 1) |