2.8.3 bspline

Brief Information

Perform cubic B-Spline interpolation and extrapolation

Command Line Usage

1. bspline ix:=Col(3) iy:=(Col(1),Col(2));

2. bspline ix:=Col(3) iy:=(Col(1),Col(2)) ox:=Col(4);

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
X Values to Interpolate ix

Input

vector

<unassigned>

Specifies the X values to be interpolated on the spline.

Input iy

Input

XYRange

<active>

The input XY range data to be interpolated.

Smoothing Factor sf

Input

double

<unassigned>

Smoothing Factor. The factor helps user to control the balance between the smoothing and closeness.

Output ox

Output

vector

<new>

Specifies the column to save output interpolated Y values on the spline.

Coefficients coef

Output

vector

<optional>

Whether or not to output spline coefficients.

Description

This function performs Cubic B-spline interpolation on XY range data. You should specify the X coordinates on the spline, and it will output a vector contains the interpolated Y values on these X values.

Examples

1. Import Interpolation.dat on \Samples\Mathematics folder.

2. Type the following script on command window:

bspline 3 2;

Algorithm

Detail algorithms please read the help of interp1.

Related X-Functions

interp1, interp1xy, interp1q, spline