LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D Interpolation Search Algorithm

I currently have a discretized plot that crosses the zero axis, but not necessarily at a data point. I want to interpolate between the two points and find what the x value is when y=0. Is there any way to do this other than creating my own search algorithm?
0 Kudos
Message 1 of 3
(2,804 Views)
Use a threshold 1D array to find the fractional index of your crossing point.
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 3
(2,803 Views)

Threshold will do what you want, but be sure that you understand how it works. I looks for the first place where one point is less than the threshold and the second is greater than the threshold. The implication of this explaination is that it only works on the rising edge of a signal. I you are looking for a crossing on a falling edge you have to first negate the array to basically flip it upside down.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(2,787 Views)