07-03-2017 08:20 AM
Hello,
I have two arrays with two sets of points. I need to fit them with two straight lines. I know that the two lines are parallel, so I want to use that information in the fit. There is a way to fit the two lines at the same time and force the two lienear coefficients (slope) to be the same? With the intercept different for the two lines. Does anyone have a suggestion on how to do that?
Thanks for the help 🙂
Please let me know if the question is not clear.
Ps. I tried to use Linear fit, but it can fit only one set of points at a time and clearly the slopes are different for the two sets of points.
Solved! Go to Solution.
07-03-2017 10:30 AM - edited 07-03-2017 10:34 AM
the general linear fit is what you need: Read the Help and a math book 😄
I attached a demo .. you have two lines with same slope but different 'offset'
I was lasy and didn't used a offset free noise .... but play for yourself 😉
07-04-2017 06:44 AM
Hi,
Thanks for the answer. The example was useful. The help of labview is not too clear on that function.
Cheers,
Dan