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

Home » Public Forums » archive » Curvefit
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: curvefit [message #44408 is a reply to message #9041] Tue, 14 June 2005 08:20 Go to previous messageGo to previous message
nolan.smith1 is currently offline  nolan.smith1
Messages: 12
Registered: June 2005
Junior Member
I spoke too soon!
So I have set up my function:
(the model I am trying to fit is y=a/((1+(x/b))^2) )

FUNCTION myfun,X,P
RETURN,P(0)/(1+(X/P(1))^2)
END

and then I try to run

result=MPFITFUN('myfun',x,y,0.5,0.01)

Where x,y are my x,y coordinates of the data that I am trying to fit,
0.5 is the first guess for P(0) and 0.01 is the first guess for P(1).
As you guessed it is not working. What am I doing wrong?

Thank you,
Nolan
[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
Read Message
Previous Topic: Re: Locating IDL source code file
Next Topic: plotting data as it arrives using objects

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

Current Time: Sun Oct 12 13:21:06 PDT 2025

Total time taken to generate the page: 1.68103 seconds