Table Of Contents

Spline Interpolation (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Returns a spline interpolated value at a single value given the tabulated values (x[i], y[i]) and the second derivatives of the cubic spline interpolating function that this node obtains from the Spline Interpolant node.

    connector_pane_image
    datatype_icon

    Y

    Tabulated values of the dependent variable.

    datatype_icon

    X

    Tabulated values of the independent variable.

    datatype_icon

    interpolant

    The second derivative of the cubic spline interpolating function.

    You can obtain interpolant from the Spline Interpolant node. The number of elements in the three input arrays X, Y, and interpolant should be the same. Otherwise, this node sets the output interpolation value to NaN and returns an error.

    datatype_icon

    x value

    A single value. x value must fall within the range [X0, Xn - 1].

    datatype_icon

    error in

    Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

    Default: No error

    datatype_icon

    interpolation value

    The cubic spline interpolation of f at the single value.

    datatype_icon

    error out

    Error information. The node produces this output according to standard error behavior.

    Algorithm for Calculating the Interpolation Value

    The points are formed by the input arrays X and Y.

    On the interval [xi, xi + 1], the following equation defines interpolation value y.

    y = A y i + B y i + 1 + C y i + D y i + 1

    where

    A = x i + 1 x x i + 1 x i
    B = 1 A
    C = 1 6 ( A 3 A ) ( x i + 1 x i ) 2
    D = 1 6 ( B 3 B ) ( x i + 1 x i ) 2

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics