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 #84356 is a reply to message #84355] Thu, 30 May 2013 12:09 Go to previous messageGo to previous message
Meg is currently offline  Meg
Messages: 7
Registered: May 2013
Junior 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

Hi,

I'm trying to learn more about MPFIT too. I don't understand how to use the routines once I have downloaded the .pro files (new programer). I'm just not sure where to put the files so that IDL reads MPFITFUN as a routine and not a variable. Can you point me to a resource that will help?

- Meg
[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 03:31:44 PDT 2025

Total time taken to generate the page: 0.32654 seconds