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 #32848] Wed, 13 November 2002 07:41 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Jonathan Greenberg wrote:
>
> Thanks!
>
> 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

Which is precisely what a*exp(b*x)+c will do, for the appropriate values
of a, b, and c. For example, y=-80690323.0D*exp(-0.0006D*x)+1.340D is a
curve with those features, which makes a rough match to your data. It
can be converted to the form of your equation by re-writing it as:

y = 80690323.0D*(1.0D - exp(-0.0006D*x))-80690321.66D

But as you can see, that form obscures the assymptotic value, which is
1.34 for this curve. The assymptote in your form is a-c, which is a
small difference of two very large numbers. That causes problems for any
numerical approach to
fitting this equation to data.
[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 14:22:56 PDT 2025

Total time taken to generate the page: 0.15887 seconds