Analysis: Mathematics: Interpolate/Extrapolate
Perform interpolation/extrapolation of XY data with multiple methods
1. interp1xy iy:=Col(2) method:=spline npts:=50;
2. interp1xy iy:=Col(2) method:=bspline sf:=0.5;
3. interp1xy iy:=Col(2) method:=bspline npts:=50 coef:=Col(3);
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 |
---|---|---|---|---|
Input | iy |
Input XYRange |
|
Specifies the XY range to be interpolated. |
Method | method |
Input int |
|
Interpolation methods
Option list:
You could refer to the algorithm of each interpolation methods.
|
Generate X Data by | xby |
Input int |
|
It supplies two options for generating X Data.
Option list:
|
X Increment | inc |
Input double |
|
This is available only when Generate X Data by is Increment. Specifies the x increment when interpolate by Sampling Interval |
Number of Points | npts |
Input int |
|
This is available only when Generate X Data by is Number of Points. Specifies the number of interpolated points. If npts is not specified, default <auto> = min( n*5, 1000), where n is the number of input points. i.e. if number of points n is less than 200, npts=5*n, otherwise npts=1000. |
X Start | xmin |
Input double |
|
The minimum X value of interpolated curve |
X End | xmax |
Input double |
|
The maximum X value of interpolated curve |
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. |
Apparent Interpolation | apparent |
Input int |
|
It is available only when the interpolation is performed on a graph. It specifies whether to use the apparent values for interpolation if the types of the axes scales have been changed to other types. |
Output | oy |
Output XYRange |
|
Specifies the output XY data range
See the syntax here. |
Coefficients | coef |
Output vector |
|
Show the coefficients or not, and show them in which column. |
1. Import Interpolation.dat on \Samples\Mathematics folder.
2. Highlight column B and select Analysis: Mathematics: Interpolation/Extrapolation... from menu to bring up the dialog box.
3. Select the Cubic B-spline interpolation method, and enter 50 in the Number of Points edit box.
4. Click OK to execute. Origin will generate a new Y column with 50 interpolated points.
Please refer to this page in the User Guide for more information:
interp1, interp1q, spline, bspline, interp1trace
Keywords:interpolate, extrapolate