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

Home » Public Forums » archive » x error bars in Curvefit / MPFIT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
x error bars in Curvefit / MPFIT [message #44482] Wed, 15 June 2005 11:25
Sean Davis is currently offline  Sean Davis
Messages: 19
Registered: August 1999
Junior Member
Hello All,

First, I apologize if this topic has been brought up before (I searched
google groups and couldn't find a post on it).

I have some lab calibration data (x,y pairs, say), and I am trying to fit y
as a function of x using the Markwardt fitting library (I suppose the same
question could apply if I were using CURVEFIT, too).

In my fit, x represents a "raw" value read from an instrument (it's actually
calculated from several other "raw" values), and y represents the "true"
value from the calibration using a different instrument. The goal is to
come up with a fit that can be applied to my raw data that best fits the
"truth".

For fitting using MPFITFUN or similar programs, one typically provides error
bars in the y value. But in my case, I have known errors in both x and y.

I know that in the simple case of fitting x and y to a line, errors in x can
be expressed as errors in y, but is there an easier way to do this. The
conversion of errors in x to errors in y does not seem very straightforward
for complicated fits.

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL source editor alternatives?
Next Topic: Mac Xcode dll (dylib) example sought for call_extern

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

Current Time: Wed Oct 08 15:44:10 PDT 2025

Total time taken to generate the page: 0.00539 seconds