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

Home » Public Forums » archive » Re: alternative to CURVEFIT function
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: alternative to CURVEFIT function [message #84371 is a reply to message #84369] Wed, 29 May 2013 13:15 Go to previous messageGo to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
Well, according to the IDL documentation, curvefit uses the gradient-expansion algorithm --- whereas lmfit uses Levenburg-marquardt. I suppose these could be the same algorithm, but it seems odd. The Markwardt stuff that David pointed you to is two different algorithms: Levenburg-marquardt and truncated newton (i'm fairly sure these are actually different).

Now, the Nelder-Mead is just the amoeba algorithm --- as coded in IDL by ... amoeba.pro.

Now, there are others in IDL as well: dfpmin, powell, and a few others (which assume linearity).

Can you compute the derivative of the function to minimize analytically? The answer to that will dictate what options you have.

Finally, I agree with David. the MPFIT from Markwardt is probably the best all-purpose thing in IDL.

Russell



On Wednesday, May 29, 2013 11:19:27 AM UTC-4, fd_...@mail.com wrote:
> Hi all
>
>
>
> I was wondering if anyone knows an alternative function of CURVEFIT. If I am not mistaken the CURVEFIT uses the Levenberg-Marquart algorithm. I need to use a different algorithm which provides a numerical solution to the problem of minimising a function, generally non-linear.
>
> Nelder–Mead method and Newton-Raphson are some choices but I was wondering if there is a function in IDL like the CURVEFIT.
>
>
>
> With Thanks
>
> M
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL problem with ncdf_vardef: can' exit definition mode
Next Topic: The function `CGSFlushWindow' is obsolete

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

Current Time: Thu Oct 09 19:58:21 PDT 2025

Total time taken to generate the page: 0.55905 seconds