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 #43612 is a reply to message #43609] Wed, 20 April 2005 11:31 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Sean Davis <seand@colorado.edu> writes:
> 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)

This is not true. CURVEFIT does nonlinear least squares, such as your
second expression. The number of independent variables is irrelevant.
You can have no independent variables if you want! The comments here:

http://cow.physics.wisc.edu/~craigm/idl/fitqa.html#multivar

apply to CURVEFIT as well as MPFIT. Not that I am defending
CURVEFIT. :-)

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: 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: Sat Oct 11 10:34:05 PDT 2025

Total time taken to generate the page: 0.87930 seconds