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

Home » Public Forums » archive » Re: Problems getting CURVEFIT to work
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: Problems getting CURVEFIT to work [message #32849 is a reply to message #32848] Wed, 13 November 2002 07:18 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Jonathan Greenberg <greenberg@ucdavis.edu> writes:
> On 11/12/02 5:14 PM, in article onk7jiuv7e.fsf@cow.physics.wisc.edu, "Craig
> Markwardt" <craigmnet@cow.physics.wisc.edu> wrote:
>> Jonathan Greenberg <greenberg@ucdavis.edu> writes:
>>> Hi there, I'm trying to use CURVEFIT to fit data to a decay function of the
>>> form:
>>> f(x) = a(1-e^(bx))+c
>>
>> Problem 1. Your parameters A and C are very highly (anti) correlated
>> with each other. It would be better to recast as A*EXP(B*X) + C.
>
> The problem is I need a curve that starts low and asymptotes higher -- I
> have a reason to believe it will asymptote at some maximum, hence the
> a(1-e^(bx))+c --> given this, how can I get this to work?


A*EXP(B*X) + D will suit you just fine. It's the same function after
all, with (D=C+A). The fit you were doing had C and A almost
perfectly anti-correlated, so combining the two will relieve some of
that problem.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Updated Display
Next Topic: MPCURVEFIT and CURVEFIT questions

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

Current Time: Fri Oct 10 18:41:27 PDT 2025

Total time taken to generate the page: 1.43937 seconds