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

Home » Public Forums » archive » Re: mpcurvefit vs. a matlab fitting technique
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: mpcurvefit vs. a matlab fitting technique [message #61612 is a reply to message #61606] Tue, 22 July 2008 06:12 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 22, 5:55 am, sheilakan...@googlemail.com wrote:
>> But if I change the input even slightly eg [9.4,0.24,0.77,-1.5]
>> I get totally different values out, eg [7.7098139, 0.19333284,
>> 0.60223838, -0.85758867]
>
> Sorry, typo, this should read:
>
>  But if I change the input even slightly eg [9.44,0.24,0.77,-1.5]
> I get totally different values out, eg [7.7098139, 0.19333284,
> 0.60223838, -0.85758867]

I have found the mpfit routines to be quite good at minimizing square
errors. There are a lot of "tweaks" one can use, such as step-size,
to help the routines avoid local minima - take a look at the parinfo
keyword.

I will also depend a lot on the equation that you are fitting.
Perhaps the variables are slightly "mixed", or the numerical
derivatives are ill-conditioned (is that the right term?). If
possible, one can also use analytical derivatives with the mpfit
functions, which might help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: help about annotate
Next Topic: Re: help about annotate

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

Current Time: Sat Oct 25 11:19:32 PDT 2025

Total time taken to generate the page: 2.96470 seconds