OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

interp1trace

Contents

Menu Information

Trace Interpolation

Brief Information

Perform trace/periodic interpolation on the data

Additional Information

This feature is for OriginPro only.

Command Line Usage

1. interp1trace iy:=Col(2) method:=spline npts:=50;

2. interp1trace iy:=Col(2) method:=bspline;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy

Input

XYRange

<active>

The XY range to be interpolated.

Method method

Input

int

linear

Specifies the interpolation method.
Option list

  • linear:Linear
    Use linear interpolation method.
  • Cubic spline
    Use cubic spline interpolation method.
  • Cubic B-spline
    Use cubic B-spline interpolation method.
Number of Points npts

Input

int

100

Specifies the number of interpolated points

Output oy

Output

XYRange

<new>

The XY range of interpolation result.

See the syntax here.

Description

When a curve is cyclic, or periodic, it is improper to use ordinary interpolation because the algorithm interpolates the curve based on adjacent data points in the X coordinate. This causes the cycle trend to be lost.

Image:interp1trace_help_English_files_image002.jpg

This function interpolates a curve and keeps the trend.

Image:interp1trace_help_English_files_image004.jpg

Examples

1. Import the file \Samples\Mathematics\ Circle.dat.

2. Highlight the data and plot a scatter.

3. Select Analysis: Mathematics: Trace Interpolation from menu to bring up the dialog.

4. Select Cubic B-spline interpolating method, and enter 50 on the Number of Points edit box.

5. Click OK to execute.

Algorithm

Detail algorithms please refer to the help of interp1.

Related X-Functions

interp1, interp1q, spline, bspline, interp1xy