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

Home » Public Forums » archive » LMFIT -- stay away from it!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
LMFIT -- stay away from it! [message #10942] Sat, 31 January 1998 00:00 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
A while back I posted a complaint about LMFIT, the IDL implemention of
the Numerical Recipes version of the Levenberg-Marquardt non-linear
least-squares algorithm. I complained that the form of the
user-supplied function was different and less flexible than that of
CURVEFIT. In fact, there is a more fundamental problem with LMFIT.
Although the documentation says that the user-supplied function should
accept a vector argument, **only scalar arguments are ever passed to the
user-supplied function**! Thus, if one is fitting a function of 2000
points, then there must be 2000 calls to the user-supplied function on
each iteration. And thus with a computationally intensive function,
LMFIT will be about 2000 times slower than fitting with CURVEFIT.

The same problem occurs in the IDL implementation of the Numerical
Recipes routines QSIMP. But the problem is more disatrous in LMFIT,
which requires more iterations and partial derivative computations.

My advice -- forget about LMFIT, and stick with CURVEFIT (or write your
own implementation of the Numerical Recipes routine).

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Previous Topic: Re: How to select best from a long list?
Next Topic: Reading unformatted fortran files on Windows platform

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

Current Time: Fri Oct 10 15:33:01 PDT 2025

Total time taken to generate the page: 0.80126 seconds