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

Home » Public Forums » archive » Re: xerr
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: xerr [message #64272] Wed, 17 December 2008 14:41 Go to previous message
laxsri is currently offline  laxsri
Messages: 6
Registered: November 2008
Junior Member
On Dec 18, 9:08 am, Paolo <pgri...@gmail.com> wrote:
> This is discussed for example in
> section 15.3 in edition 3 of the book
> "numerical recipes".
>
Not sure how to constrain the intercept though...
It seemed rather easy to use mpfitfun! Wondering if that is wrong?

Lakshmi


> Ciao,
> Paolo
>
> Vince Hradil wrote:
>> On Dec 17, 2:27 pm, lakshmi <lax...@gmail.com> wrote:
>>> Hi,
>
>>> I've been using mpfitfun to fit measured values of period (y) and
>>> distances (x) in a linear equation y = a + bx.
>>> I would like to know if we can include the measured uncertainties in x
>>> values too?
>
>>> Thanks,
>
>>> Lakshmi
>
>> Well, since it's a linear problem you should probably choose a linear
>> solution, not mpfitfun. Also, you need to take into account the
>> variance and covariance for both x and y, so you need to solve this
>> with care.
>
>> If you google "fitting a straight line when both variables are subject
>> to error" you'll get a lot of info:http://tinyurl.com/54m8l3
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: numerical recipes (was xerr)
Next Topic: xerr

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

Current Time: Fri Oct 10 00:55:00 PDT 2025

Total time taken to generate the page: 0.47734 seconds