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

Home » Public Forums » archive » QROMB and parameters
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: QROMB [message #39879 is a reply to message #34043] Tue, 15 June 2004 15:05 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Paul Van Delst <paul.vandelst@noaa.gov> writes:
> New2IDL wrote:
>> hi,
>> The function I am trying to integrate is :
>>
>> F(x) = a*exp(-b*(x^2))
>>
>> where: a and b are parameters
>> x ranges from 0,20
>>
>> We have experimental data to fit with the above integral (a and b as
>> parameters to be found from fit).
>>
>> When I tried to integrate the above mentioned funciton with QROMB we
>> get a single value as the answer. I cannot fit this value to my data.
>>
>> Can anybody please help me to get the F(x) value for each value of X.
>
> If you want to fit the data, why are you integrating it? Check out Craig Markwardt's IDL
> fitting package MPFIT at
> http://cow.physics.wisc.edu/~craigm/idl/fitting.html

Thanks for the plug Paul, but I think the original poster wants to fit
the integrated function, i.e., the *antiderivative*, to the data.

The antiderivative of the gaussian function is the error function, or
ERF() / ERRORF() in IDL, so the answer is built into IDL already. One
needs to take care, since there is a simple change of variables from
the IDL function to the one that "New2IDL" wants.

And of course I recommend MPFIT for the actual fitting :-)

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: range ordering of triangular facets
Next Topic: Java and IDL

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

Current Time: Sat Oct 11 22:07:31 PDT 2025

Total time taken to generate the page: 0.08453 seconds