01-13-2017 06:01 PM
I have a preset low and a high boundary acceptance curves for my data, defined by x and y values. They were experimentally derived curves, so are not a formula. I have roughly 200 points mapping each curve.
When I collect data from a new experiment, I want to verify in a script whether or not the new data is between those two curves. The x values are from my experiment, and as such are not monotonic. Each experiment generates between 700 - 900 data points.
How can I map or interpolate this data so that I can confirm with a script whether or not the new data is within the boundaries? I tried using linear mapping to map all three curves (lower, upper, and experimental data) to the same x-values, but since my experimental data's x-values are not monotonic I am unable to do so.
Solved! Go to Solution.
01-16-2017 01:30 AM
Hello jordyjordyjordy,
It is necessary to have the same time base to compare the data. For this you have two options: mapping the boundary curves to the time base of the measured data or mapping the measured data to the boundary time base. Attached you find an example script.
Greetings
Walter
01-16-2017 10:59 AM
Hi Walter_Rick - neither of those methods work because my x-channel for my data is not monotonic increasing. It is distance values taken at a certain frequency.
01-17-2017 01:38 AM
Hi jordyjordyjordy,
in this case you can sort the data before you analyze it.
You can create an index channel to be able to come back to the original order. Then sort the data, analyze them, sort the data again and delete the temporary index channel. I attached an example.
Greetings
Walter
01-17-2017 06:05 PM
Thank you! This worked.