Spline Interpolation VI

Owning Palette: Interpolation & Extrapolation VIs

Requires: Full Development System

Returns a spline interpolated value at x value given the tabulated values (x[i], y[i]) and the second derivatives Interpolant that the VI obtains from the Spline Interpolant VI.

Details  Example

 Add to the block diagram  Find on the palette
Y is the array of tabulated values of the dependent variable.
X is the array of tabulated values of the independent variable.
Interpolant is the second derivative of the cubic spline interpolating function. You can obtain Interpolant from the Spline Interpolant VI. The number of elements in the three input arrays X, Y, and Interpolant should be the same. Otherwise, the VI sets the output interpolation value to NaN and returns an error.
x value is a single value. x value should fall within the range [X0, Xn – 1].
interpolation value is the cubic spline interpolation of f at x value.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Spline Interpolation Details

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

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

y = Ayi + Byi + 1 + Cy"i + Dy"i + 1

where

Example

Refer to the Interpolation Solver VI in the labview\examples\Mathematics\Interpolation directory for an example of using the Spline Interpolation VI.

 Open example  Find related examples