【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.22.2.2.9 fft_highpass_filtering
Contents
Description
Performs high pass filtering of signal. The filtering is performed by using FFT functions.
Syntax
int fft_highpass_filtering( int nSize, double * pSignal, double dFreqStep, double dFc, bool bAddOffset = true )
Parameters
- nSize
- [input] size of input signal.
- pSignal
- [modify] Input: signal data; Output: filtered signal.
- dFreqStep
- [input] frequency step.
- dFc
- [input] cutoff frequency.
- bAddOffset
- [Input] add back DC offset after filtering(true) or not (false).
- default is true.
Return
Return 0 for success.
Examples
EX1
#include <..\OriginLab\fft.h> void fft_highpass_filtering_ex1() { vector vsig = {0, 0, 0, 1, 1, 0, 0, 0}; double dFreq = 0.1; fft_highpass_filtering(8, vsig, dFreq, 0.3); }
Remark
See Also
Header to Include
fft.h