Welcome to our Support Center

Threshold 1D Array


Interpolates points in a one-dimentional array that represents a two-dimentional non-descending graph. This function compares threshold y to the values in array of numbers or points starting at start index until it finds a pair of consecutive elements such that threshold y is greater than or equal to the value of the first element and less than or equal to the value of the second element.


Input parameters


array of numbers or pointsΒ : class, a one-dimentional tensor of numbers or a tensor of points where each point is a cluster of x- and y-coordinates. If this input is an tensor of points, this function uses the second elements in the clusters, or the y-coordinates, to obtain a fractional index that it then uses to interpolate the corresponding x value.
threshold y : float, threshold value for the function. If threshold y is less than or equal to the array value at start index, the function returns start index for fractional index or x. If threshold y is greater than every value in the array, the function returns the index of the last value.
start indexΒ : integer, must be a number. The default is 0, which means the function returns the result calculated from the entire array, rather than a specified section of the array.

Output parameters


fractional index or xΒ : float, interpolated result function calculates for the array of numbers or points one-dimentional input tensor.


All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install PERRINE library to run it).

Table of Contents