comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Notes on CURVEFIT.PRO
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Notes on CURVEFIT.PRO [message #568] Tue, 06 October 1992 10:16
knight is currently offline  knight
Messages: 37
Registered: January 1992
Member
In article <5OCT199223161224@stars.gsfc.nasa.gov>, landsman@stars.gsfc.nasa.gov|> (They are simple enough to add by individual users but I think it would
|> be better if RSI would standardize them.)
|>
|> (1) Add a keyword determining the maximum number of iterations to
|> be attempted.
|> (2) Add a keyword giving the chi square of the final fit.
|> (3) Add a /DEBUG or /VERBOSE keyword giving the results of each
|> iteration (these are now commented lines in the code)
|> (4) Add a parameter to choose which parameters to hold constant and
|> which parameters to vary
I'd make this a keyword, e.g., /FIXED=[1,0,0,1,0] to hold the first and fourth
parameters constant.

|> (5) Maybe use the STATUS parameter of the INVERT function to signal
|> a small pivot element
I would also add:

(6) Optional upper and lower bounds for varied parameters.
--
=Fred Knight (knight@ll.mit.edu) (617) 981-2027
C-483\\MIT Lincoln Laboratory\\244 Wood Street\\Lexington, MA 02173
Re: Notes on CURVEFIT.PRO [message #569 is a reply to message #568] Tue, 06 October 1992 09:42 Go to previous message
landsman is currently offline  landsman
Messages: 93
Registered: August 1991
Member
In article <5OCT199223161224@stars.gsfc.nasa.gov>, landsman@stars.gsfc.nasa.gov (Wayne Landsman (301)-286-3625) writes...
>
> The version of CURVEFIT.PRO in the IDL User's library in V2.3.2 (and
> presumably in earlier versions) contains a typo in line 133
>
>
> FLAMBDA = FLAMBDA/100. ;DECREASE FLAMBDA BY FACTOR OF 10
>
> According to the versions of this procedure in both Bevington and "Numerical
> Recipes" the comment (and not the code) is correct, i.e. the denominator should
> be 10. and not 100.

Oops, I was mistaken -- the code is correct. In the IDL implementation,
the fit is assumed to get worse so FLAMBDA is multiplied by 10 on every
iteration. When chi square does decrease one then needs to divide by 100.

Sorry about the fire drill, and thanks to Mark Elliott for pointing out
my error.

-Wayne Landsman landsman@stars.gsfc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Notes on CURVEFIT.PRO
Next Topic: Using cpp with IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:51:15 PDT 2025

Total time taken to generate the page: 0.00932 seconds