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

Home » Public Forums » archive » CURVFIT with XY error
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: CURVFIT with XY error [message #90199 is a reply to message #88447] Tue, 10 February 2015 10:33 Go to previous messageGo to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
I am only aware of this working for fitting a linear function:

y= m*x + b

But for that, you can use Brandon Kelly's fitexy.pro in astrolib:

http://idlastro.gsfc.nasa.gov/contents.html


http://idlastro.gsfc.nasa.gov/ftp/pro/math/fitexy.pro


Are you sure your function is nonlinear? I mean, is there any transformation you can apply to force it to be linear?

-Russell


On Sunday, April 27, 2014 at 5:31:55 PM UTC-4, Amin Farhang wrote:
> Hi,
>
> Is there any replacing routine for CURVFIT which was able to do a non-linear least squares fit to a user-supplied function by considering both X and Y error?
>
> data sample:
>
> X = [0.8, 2.2, 3.3, 4.8, 5.8]
> Y = [2.02, 2.78, 3.58, 5.05, 6.35]
> Xerr = 0.03*X
> Yerr = 0.05*Y
>
>
> Best regards,
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL array subscripting issue
Next Topic: mpfitfun and complex data

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

Current Time: Wed Oct 08 16:00:06 PDT 2025

Total time taken to generate the page: 0.00459 seconds