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

Home » Public Forums » archive » Re: Error detected while calling MPFIT_FDJAC2
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: Error detected while calling MPFIT_FDJAC2 [message #71503 is a reply to message #71489] Tue, 22 June 2010 02:40 Go to previous messageGo to previous message
Fermiona Fermiona is currently offline  Fermiona Fermiona
Messages: 17
Registered: June 2010
Junior Member
Hello Dr. Craige,

I didn't compute the derivatives. The user function returnes the
residual:

FUNCTION LinearFit, p, X=x, Y=y, ERR=err, $
perror=perror, bestnorm=bestnorm, dof=dof

model = p[0]+p[1]*x
resid = (y-model)/err

return, resid
END


and inside the procedure, I had:

p0 = [51.0,-0.5]
args = {X:x_n, Y:y_n, ERR:yerr}
fit_res = mpfit('LinearFit', p0, functargs=args,perror=perror,
bestnorm=bestnorm, dof=dof)

The first time I called mpfit outside of the loop, there was no
error.
When mpfit was called again, from inside the loop this time, I got the
error I mentioned.

Many thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: linear interpolation to form a deformation field
Next Topic: IDLDoc + HTML

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

Current Time: Fri Oct 10 01:58:52 PDT 2025

Total time taken to generate the page: 1.41429 seconds