Jump to content

Interpolate 1D Array function: Difference between revisions

From LabVIEW Wiki
Add new page (stub)
 
Add contents
Line 1: Line 1:
{{stub}}
[[File:Interpolate 1D Array - Terminals.png|thumb|Interpolate 1D Array function]]
[[File:Interpolate 1D Array - Terminals.png|thumb|Interpolate 1D Array function]]


{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}}
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 ==
== Usage ==


== Best practice ==
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.


== History ==
[[File:Interpolate 1D Array - Between Elements.png]]


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


== External links ==
[[File:Interpolate 1D Array - Outside Array Boundary.png]]


[[Category:Array Palette]]
[[Category:Array Palette]]

Revision as of 18:35, 18 November 2019

Interpolate 1D Array function
Object information
Owning palette(s) 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.

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