Interpolate 1D Array function

From LabVIEW Wiki
Jump to: navigation, search
Interpolate 1D Array function
Object information
Owning palette Array palette
Type Function
Requires Basic Development Environment

The Interpolate 1D Array function takes a one-dimensional numeric array and a fractional index to linearly calculate a value between the elements before and after the specified fractional index.

Usage

Connect a one-dimensional array to the array of numbers or points input terminal and an index at fractional index or x. The return value will either be an element from the source array (if the index is an integer) or a value between the elements before and after the specified fractional index.

Interpolate 1D Array - Between Elements.png

If the specified index is out of range, the closest element is returned (first or last element of the array).

Interpolate 1D Array - Outside Array Boundary.png