
Contents |
Interpolate/Extrapolate
Perform 1D interpolation/extrapolation on a group of XY data to generate a set of interpolated data with uniformly-spaced X values using 3 alternative 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);
| 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:
|
| Number of Points | npts |
Input int | | Specifies the number of interpolated points |
| X Minimum | xmin |
Input double | | The minimum X value of interpolated curve |
| X Maximum | xmax |
Input double | | The maximum X value of interpolated curve |
| Boundary | boundary |
Input int | | Boundary condition only available in cubic spline method
Option list:
|
| 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. |
| Smoothing Factor | sf |
Input int | | 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. |
| 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.
3. Select Cubic B-spline interpolating method, and enter 50 on 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: