Analysis: Signal Processing: Decimation
Reduce signal size by decreasing sampling rate
Minimum Origin Version Required: 8.1 SR0
This feature is for OriginPro only.
1. decimate Col(2) d:=4 filter:=none;
2. decimate Col(2) filter:=ave oy:= (Col(3), Col(4));
3. decimate Col(2) filter:=fir order:=20 oy:= (Col(3), Col(4));
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 |
|
Specify the input XY data range to be decimated. |
Resample factor | d |
Input int |
|
Specify an integer l here. Then every l samples in the source data will be merged into one in the output dataset.Note that the resample factor must be an integer and should not be greater than the size of the input dataset. |
New Size | newsize |
Input int |
|
This is a uneditable text label that shows the size of the output dataset. It is determined by the size of the input dataset and the resample factor. |
Filter Type | filter |
Input int |
|
Specify the filter that is used in decimating.
Option list:
|
Order | order |
Input int |
|
This is available only when FIR Filter is chosen for Filter Type. Use it to specify the filter order of the FIR filter. It must be an integer between 8 and 60. |
Plot FFT for Preview | plot |
Input Int |
|
Specify whether to plot the FFT plot in the Preview window on the right panel of the dialog. |
Output | oy |
Output XYRange |
|
Specify where to store the output data.
See the syntax here. |
Decimation is to reduce the size of the input sequence. Every N samples are merged into one according to the Resample factor you have specified. If the resample factor is d, the decimated vector is d times shorter in length than the input vector.
This function provides two filters for decimation, including Moving Average Filter and FIR Filter (Please refer to Algorithm for more information about two filters). However, no filter is used by default.
For more information, please refer to our User Guide.
Keywords:data reduction, FIR, moving average