|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide getbasemodel.pro
getbasemodel |
Function to return the polynomial using the most recently fitted baseline coefficients and !g.nfit or the nfit keyword using the data in the primary data container. This function is used in all of the GUIDE baseline related functions but may also be useful in other uses.
Note that getbasemodel does not do any fitting. Use baseline or Since orthogonal polynomials are used internally, using up
to any nfit less than or equal to the value of nfit used when the
polynomials were generated is itself the fit that would have resulted
had that smaller nfit been used in the first place. In this way,
getbasemodel can be used to generate the model fit for any value of
nfit up to the nfit actually used to generate the most recently fit
polynomial.
getrec, 20 ; get some data
nregion,[100,500,700,1000,1600,2000] ; set up regions to fit
nfit,7 ; 7th order fit
bmodel ; do the fit
lastfit = getbasemodel() ; get the fit
lastfit_n2 = getbasemodel(nfit=2) ; only use up to 2nd order terms
Produced by IDLdoc 1.6 on Sun Oct 22 03:20:05 2017