【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.22.2.2.10 fft_lowpass
Contents
Description
Performs low pass filtering of signal. The filtering is performed by using FFT functions.
Syntax
int fft_lowpass( Curve & crvSignal, double dFc )
int fft_lowpass( vector & vecSignal, double dFc, vector * vecTime = NULL )
Parameters
- crvSignal
- [modify]Input: signal data; Output: filtered signal
- dFc
- [Input] cutoff frequency
- vecSignal
- [modify]Input: signal data; Output: filtered signal
- dFc
- [Input] cutoff frequency
- vecTime
- [Input] frequency sequence. default is NULL.
Return
OE_NOERROR: success
positive: FFT error code
Examples
EX1
//Before compile this example, run the following LabTalk command in Command Window: // run.LoadOC("Originlab\fft_utils.c", 16); #include <fft_utils.h> void fft_lowpass_ex1() { double dFc = 6.5; vector vecX; vector vecY; vecX.Data(1.0,10.0,1.0); vecY.Normal(10); Curve crvSignal(vecX, vecY); int iRet = fft_lowpass(crvSignal, dFc); }
EX2
//Before compile this example, run the following LabTalk command in Command Window: // run.LoadOC("Originlab\fft_utils.c", 16); #include <fft_utils.h> void fft_lowpass_ex2() { double dFc = 6.5; vector vecX; vector vecY; vecX.Data(1.0,10.0,1.0); vecY.Normal(10); int iRet = fft_lowpass(vecY, dFc, &vecX); }
Remark
See Also
Header to Include
fft_utils.h