
Contents |
Interpolate/Extrapolate Y from X
Perform 1D interpolation or extrapolation on a group of XY data to find Y at given X values using 3 alternative methods.
1. interp1 ix:=Col(3) iy:=(Col(1), Col(2));
2. interp1 ix:=Col(3) iy:=Col(2) ox:=Col(4);
3. interp1 ix:=Col(3) iy:= Col(2) method:= bspline coef:=Col(4);
4. interp1 ix:=Col(3) iy:=(Col(1), Col(2)) method:=spline;
5. interp1 ix:=Col(3) iy:=Col(2) method:=spline ox:=<new> coef:=<new>;
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| X Values to Interpolate | ix |
Input vector | | The vector to interpolate on. |
| Input | iy |
Input XYRange | | The XY range to be interpolated. |
| Method | method |
Input int | | Interpolation methods
Option list:
|
| Boundary | boundary |
Input int | | Boundary condition only available in cubic spline method
Option list:
|
| Smoothing Factor | sf |
Input double | | A non-negative parameter that specifies the smoothness of the interpolated curve in Cubic B-Spline interpolation. The factor helps user control the balance between the smoothing and closeness. Larger values will result in smoother curves. |
| Result of interpolation | ox |
Output vector | | The output vector interpolated on ix. |
| Coefficients | coef |
Output vector | | Spline coefficients when using spline or B-spline method. |
1. Import Interpolation.dat on \Samples\Mathematics folder.
2. Highlight column B and click Analysis: Mathematics: Interpolate/Extrapolate Y from X on the menu to bring up the dialog.
3. Now the Input branch have filled with proper data range, click the drop-down list beside X Values to Interpolate edit box, and select Col(C).
4. Select Cubic B-spline interpolate method.
5. Click OK to do interpolation.
Please refer to this page in the User Guide for more information: