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

Home » Public Forums » archive » mpfit: what's different
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: mpfit: what's different [message #58703 is a reply to message #58600] Tue, 12 February 2008 09:40 Go to previous message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Btw, can it be that mpcurvefit expects a different analytical
derivative (dResid/dP) than curvefit (dFunc/dP)? I think this should
be added in mpcurvefit_eval:

;; Compute the deviates, applying the weights
result = (y-f)*wts
if n_params() GT 1 then $
dp*=rebin(wts,n_elements(x),n_elements(p),/sample)

Actually, it should be
dp*=rebin(-wts,n_elements(x),n_elements(p),/sample)
but since mpfit_fdjac2 flips the sign (why?), we have to do it here to
correct for that.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: One ellipse to rule them all
Next Topic: Array has a corrupted descriptor

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

Current Time: Fri Oct 10 14:55:00 PDT 2025

Total time taken to generate the page: 2.27483 seconds