02-18-2016 03:48 PM
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.
02-18-2016 04:02 PM
Make sure that data and fit both use the same x-values, then subtract the two y arrays.
02-18-2016 04:05 PM
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.
02-18-2016 04:19 PM
Thanks for the quick reply. That is a great little trick. Thanks a lot. 🙂
02-18-2016 04:22 PM - edited 02-18-2016 04:35 PM
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.