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 #84357 is a reply to message #84356] Thu, 30 May 2013 11:47 Go to previous messageGo to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Wednesday, May 29, 2013 9:39:08 PM UTC-4, Craig Markwardt wrote:
> On Wednesday, May 29, 2013 11:19:27 AM UTC-4, fd_...@mail.com wrote:
>
>> 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.
>
>
>
> Adding to what the other posters said...
>
>
>
> If you can any way express your function as the sum of squared residuals, then you should try to use the MPFIT family of functions. It is far more stable than CURVEFIT.
>
>
>
> Note that you can sometimes bend the rules. If your optimization function is the sum of *somethings*, then often you can rewrite the somethings as (somethings elses)^2. As long as (something else) is signed, you can use MPFIT.
>
>
>
> If you really need general function minimization, then yes you can try my TNMIN. If your user function is smooth then it will find a minimum with a Newton-type method.
>
>
>
> Craig
>
> http://cow.physics.wisc.edu/~craigm/idl/fitting.html

BTW, Craig. What does MPFIT stand for? I mean, I can guess about what FIT is... But MP?

R
[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 22:08:41 PDT 2025

Total time taken to generate the page: 1.11934 seconds