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

Home » Public Forums » archive » Re: does curvefit() work ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: does curvefit() work ? [message #4133] Sat, 29 April 1995 00:00
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <3nrpn4$c23@news.ycc.yale.edu>, aki@itsa.ucsf.edu (Andreas Kiefer) writes:
> I have to fit a modell function to given data and thought curvefit() would be a
> nice tool for doing that. In order to test curvefit() I ran the examples given
> in the online help. And no surprise curvefit calculated the 'right' fit.
> However when I slightly changed one of the starting values the fit was way off.
> I am aware that curvefit() finds local minimae only, but for such a _simple_
> example it should be able to converge to the proper fit. Did anybody encounter
> similar problems with curvefit(). Is there a workaround? Or is there another
> general fitting routine around? ( I know that there is a routine curfit() in
> the user_contrib/windt directory, but that one is most similar to curvefit and
> does not work either ). To be specific I used the example given in the online
> help for curvefit() under the math section. When I changed the starting value
> from a=[10.0,-0.1,2.0] to a=[.0,-0.1,2.0] the fit failed .....
>

The problem is that the example in the comments at the beginning of curvefit()
is WRONG. It does not compute the partial derivatives correctly, and hence does
not converge reliably.

There is a new version of curvefit() coming out in in IDL 4.0 which fixes lots
of problems. It will calculate finite difference estimates of partial derivates
for you if your function does not have easily computed analytical derivatives.

If you need a better version before 4.0 comes out, send me e-mail.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is a Widget realized?
Next Topic: Re: [Q] Using a macintosh as a X terminal for IDL

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

Current Time: Sat Oct 11 12:54:41 PDT 2025

Total time taken to generate the page: 0.79871 seconds