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

Home » Public Forums » archive » mpfitfun.pro
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
mpfitfun.pro [message #27252] Mon, 15 October 2001 02:41
fskhk is currently offline  fskhk
Messages: 5
Registered: August 2001
Junior Member
I'm using Craig Markwardt's fitting routine MPFITFUN.PRO. I use an
expression called the Dorman function, to fit the given data points.
I don't get a proper fit, doesn't matter which starting params I use.
This is my code:

function dorman, x,p
return,P(0)*P(1)*148.1*(X^(-P(1)-1.0))*exp(-P(0)*X^(-P(1)))
end

start=[1.5D, -0.5]
p=MPFITFUN('dorman',x,y,rerr,start)
yy=dorman(x,p)

oplot, exp(x), exp(yy), color = 150 ; using natural log axes.

What am I doing wrong?
Thanks for any help.

Helena Kruger
[Message index]
 
Read Message
Previous Topic: Re: RSI Platform Support Announcement
Next Topic: building argument list for addRecord in Dataminer

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

Current Time: Wed Oct 08 18:17:04 PDT 2025

Total time taken to generate the page: 0.00411 seconds