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

Home » Public Forums » archive » Re: Fitting a function with multiple independent variables
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: Fitting a function with multiple independent variables [message #43617 is a reply to message #43612] Wed, 20 April 2005 09:30 Go to previous messageGo to previous message
Sean Davis is currently offline  Sean Davis
Messages: 19
Registered: August 1999
Junior Member
maarten wrote:

> Hello,
>
> You can use the built in routine curvefit.
> cheers maarten
>
> Sean Davis wrote:
>> Hello all,
>>
>> I am currently trying to fit a function with multiple independent
>> variables. I have used IDL's REGRESS routine, which does a multiple
>> linear regression, such as fits to something like:
>>
>> Y = 5 + 3*X1 - 4*X2
>>
>> But what if I want one of my independent variables to vary non-linearly,
>> like
>>
>> Y = 5 + 3*X1^2 - 4*X2
>>
>> (I assume this is called non-linear regression?)
>>
>> I've heard of Craig M.'s fitting library, so I suppose I should look
>> there. But for the record, are there any built-in programs in IDL to do
>> this???
>>
>> Thanks,
>> Sean
>>
Actually, CURVEFIT does not work for that task. CURVEFIT fits a function
with multiple parameters (a,b,c), like

y = a*x + b*x^2 + c*exp(x),

but not functions with multiple independent variables AND paramaters, like

y = a*x1 + b*x2^2 + c*exp(x3)

-Sean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: !p.multi for iplot
Next Topic: deleting a window created with envi_info_wid

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

Current Time: Sun Oct 12 03:01:41 PDT 2025

Total time taken to generate the page: 2.31917 seconds