Analysis: Mathematics: Interpolate/Extrapolate Y from X
Interpolate or extrapolate XY data at a given set of X values
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>;
Please refer to the page for additional option switches when accessing the x-function from script
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 reference XY dataset(s) for interpolation. Multiple XY ranges are supported. If multi-ranges are selected, corresponding sets of interpolated Y vectors and coefficients will be output. |
Method | method |
Input int |
|
Interpolation methods
Option list:
You could refer to the algorithm of each interpolation methods. |
Extrapolate Option | option |
Input int |
|
When parts of the data range specified by ix is outside that of the X range specified by iy, these range parts will be considered as the extrapolated range, because the resulted Y values for these parts will be computed from extrapolation. This option can then be used to specify how to extrapolate the corresponding Y values.
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 smoothness and fidelity to actual data. Larger values produce smoother curves. |
Result of interpolation | ox |
Output Range |
|
The Y range(s) to output interpolated Y values. |
Coefficients | coef |
Output Range |
|
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:
interp1xy, interp1q, spline, bspline, minterp2
Keywords:interpolation, find y from x