Linearly interpolates a decimal y value from an array of numbers or points using a specified fractional index or x value.
An array of numbers or an array of points where each point is a cluster of x and y coordinates.
If this input is an array of points, the node uses the first element in the cluster (x) to obtain a fractional index by linear interpolation. The node then uses this fractional index to compute the output y value from the second cluster element (y).
The index or x-value at which the node should return a y-value. fractional index or x must be located directly on a point or between two points for the node to work correctly.
fractional index or x does not interpolate beyond the bounds of an array or data point set. For example, if the parameter is set lower than the first element or x-value in an array, the node returns the value of the first element or the y-value of the first data point. Similarly, if the parameter is set too high, the node returns the value in the final element or the final y-value.
The interpolated value of the element at the fractional index or the interpolated y-value of the fractional data point in array.
|array||fractional index or x||y value||comments|
|[5, 7]||0.5||6.0||The output is halfway between the values at elements 0 and 1.|
|Array of points
|3.5||7.5||The output is the linearly interpolated value at the x-value corresponding to 3.5.|
Where This Node Can Run:
Desktop OS: Windows
FPGA: All devices (only within an Optimized FPGA VI)