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

Home » Public Forums » archive » mpfit: what's different
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mpfit: what's different [message #58638 is a reply to message #58600] Mon, 11 February 2008 05:39 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Wox <nomail@hotmail.com> writes:


> Hi everyone,
>
> Is there any documentation on the theory behind Craig Markwardt's
> mpfit? What's different from the Levenberg-Marquardt algorithm as
> given in "Numerical Recipes in C" (used in IDL's curvefit)?
>

Hi, I'm back!

First off, I should say that MPFIT is based on MINPACK (by Jose More'
et al), so I don't take any of the credit for the underlying algorithm.

Basically, Numerical Recipes is a quick and dirty implementation of
Levenberg Marquardt, so what you get are quick and dirty results.
Some of it boils down to how the normal equations are determined
(MPFIT doesn't; it uses direct QR factorization of the Jacobian, which
improves numerical precision); how the LM parameter and trust region
are determined (Numerical Recipes doesn't really have a concept of
"trust region"); and the convergence criteria.

Also, as David points out, MPFIT has more features than CURVEFIT, such
as the abillity to fix or vary certain parameters, the ability to set
simple parameter boundaries, to tie parameters together, and some
advanced options for keeping track of the fit status. The MPFIT*
library also has a few different flavors of the main routine, to make
things easy in certain cases (1d fitting, 2d fitting, using an
expression insted of a function, and so on).

> Is it a difference in choosing the damping factor in the modified
> curvature matrix or is there more to it?

I'm not sure what this means. I encourage you to consult the primary
references in the mpfit.pro documentation section.

Good luck, and happy fitting,
Craig Markwardt
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: One ellipse to rule them all
Next Topic: Array has a corrupted descriptor

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

Current Time: Thu Oct 09 22:24:47 PDT 2025

Total time taken to generate the page: 1.20082 seconds