
Contents |
Perform cubic B-Spline interpolation and extrapolation
1. bspline ix:=Col(3) iy:=(Col(1),Col(2));
2. bspline ix:=Col(3) iy:=(Col(1),Col(2)) ox:=Col(4);
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| X Values to Interpolate | ix |
Input vector | |
Specifies the X values to be interpolated on the spline. |
| Input | iy |
Input XYRange | |
The input XY range data to be interpolated. |
| Smoothing Factor | sf |
Input double | |
Smoothing Factor. The factor helps user to control the balance between the smoothing and closeness. |
| Output | ox |
Output vector | |
Specifies the column to save output interpolated Y values on the spline. |
| Coefficients | coef |
Output vector | |
Whether or not to output spline coefficients. |
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.
1. Import Interpolation.dat on \Samples\Mathematics folder.
2. Type the following script on command window:
bspline 3 2;
Detail algorithms please read the help of interp1.