LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deviation of linear fit

Hi, I am having trouble finding the deviation for a piecewise linear. I just need to find the deviation of the linearized line from the original curve and I'm stuck. If you have some time take a look. 

Thanks in advance.

0 Kudos
Message 1 of 5
(2,941 Views)

Make sure that data and fit both use the same x-values, then subtract the two y arrays.

0 Kudos
Message 2 of 5
(2,930 Views)

The trick is to use the "Threshold 1D Array" to find the fractional index corresponding to your "Characteristic" data points. Then just Interpolate the y-value based on that fractional index.

0 Kudos
Message 3 of 5
(2,925 Views)

Thanks for the quick reply. That is a great little trick. Thanks a lot. 🙂 

0 Kudos
Message 4 of 5
(2,912 Views)

Use an array of points (array of xy clusters) and you don't need any tricks. 😄 (well, that's a trick too, but it is in the help!)

 

 

 

(... and please don't maximize the front panel and diagram to the screen, that's very annoying!)

 

Also feel free to vote for this idea. Doesn't get much love! 😞

 

QUOTE: Similar to xy graphs, interpolate array should accept complex arrays and it would act the same as when an array of xy points is wired to it instead.

Download All
Message 5 of 5
(2,906 Views)