|
Developer Documentation |
|||||||||
| prev file | next file | ||||||||||
| SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox ortho_poly.pro
| ortho_poly |
function returns the sum of the set of orthogonal polynomials described by the polyfit argument evaluated at x.;
This code came from Tom Bania's GBT_IDL work. Local modifications include:
yy = *(!g.s[0].data_ptr)
xx = dindgen(n_elements(yy))
poly = ortho_fit(xx, yy, 7, cfit, rms)
thefit = ortho_poly(xx,poly)
*(!g.s[0].data_ptr) = *(!g.s[0].data_ptr) - thefit
| Parameters | |
|
x |
The x-values to use in evaluating the polynomials. |
|
polyfit |
The array describing
the polynomials. Typically this will be the return value from ortho_fit. The
dimensionality is [4,(nfit+1)]
|