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

Home » Public Forums » archive » Constrained fit of a straight line: fixed intercept
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
Constrained fit of a straight line: fixed intercept [message #72266] Thu, 26 August 2010 21:36
Joe Daal is currently offline  Joe Daal
Messages: 9
Registered: May 2010
Junior Member
Hi,

I am not sure how easy this problem is, but it sure gave me hell
today.
I have the following vector arrays: X, Y, & Y_errors. There are 5
elements in each and they do form a nice line describes by Y = A + BX.
I need to fit this line with B as a free parameter and constrain A to
pass by the the third point.
So the problem narrows down to one parameter as: Y = (Y0 - BX0) + BX,
whre Y0 and B0 and the third point values (i.e., X[2] and Y[2]).
I tried using MPFIT with the PARINFO keyword. It just didn't work.
Any ideas? Thanks....

-Joe
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Zip contents in a folder
Next Topic: ESRI shape file

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

Current Time: Wed Oct 08 14:10:59 PDT 2025

Total time taken to generate the page: 0.00260 seconds