2.8.6 differentiate
Contents
Menu Information
Analysis: Mathematics: Differentiate
Brief Information
Calculate derivative of XY data
Additional Information
This feature is updated in 8.0 SR5. For more details, please refer to Release Notes.
Command Line Usage
1. differentiate iy:=Col(2);
2. differentiate iy:=(1, 2) order:=2 oy:=(3, 4);
3. differentiate iy:=(1,2) smooth:=1 poly:=2 npts:=20
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Input | iy |
Input XYRange |
|
Specify the input XY range (curve) to perform differentiation. |
| Derivative Order | order |
Input int |
|
Specify the derivative order. |
| Smooth | smooth |
Input int |
|
Specify whether to use the Savitzky-Golay smoothing method that performs a local polynomial regression around each point to find the derivatives. |
| Polynomial Order | poly |
Input int |
|
This is available only when the smooth variable is set to 1. It specifies the polynomial order (1 to 9) for the Savitzky-Golay smoothing method. |
| Points of Window | npts |
Input int |
|
This is available only when the smooth variable is set to 1. It specifies the number of points in the moving window used in the Savitzky-Golay smoothing method. |
| Output | oy |
Output XYRange |
|
Specify the output range.
See the syntax here. |
| Plot Derivative Curve | plot |
Input int |
|
Specify whether to plot the derivative curve. |
Examples
This example shows you how to calculate the second derivative of a dataset:
- Import the file <Origin Program Folder>\Samples\Spectroscopy\HiddenPeaks.dat.
- Highlight col(B), and then select Analysis: Mathematics: Differentiate from the main menu to bring up the dialog box of the tool.
- Enter 2 after Derivative Order
- Click OK. A new column should be added to the worksheet. It has the results.
More Information
Please refer to this page in the User Guide for more information:
- Description
- Algorithm