29 #ifndef GRT_FFT_FEATURES_HEADER
30 #define GRT_FFT_FEATURES_HEADER
32 #include "../../CoreModules/FeatureExtraction.h"
52 FFTFeatures(UINT fftWindowSize=512,UINT numChannelsInFFTSignal=1,
bool computeMaxFreqFeature =
true,
bool computeMaxFreqSpectrumRatio =
true,
bool computeCentroidFeature =
true,
bool computeTopNFreqFeatures =
true,UINT N = 10);
100 virtual bool reset();
150 bool init(UINT fftWindowSize,UINT numChannelsInFFTSignal,
bool computeMaxFreqFeature,
bool computeMaxFreqSpectrumRatio,
bool computeCentroidFeature,
bool computeTopNFreqFeatures,UINT N);
156 UINT numChannelsInFFTSignal;
157 bool computeMaxFreqFeature;
158 bool computeMaxFreqSpectrumRatio;
159 bool computeCentroidFeature;
160 bool computeTopNFreqFeatures;
163 double maxFreqFeature;
164 double maxFreqSpectrumRatio;
165 double centroidFeature;
166 VectorDouble topNFreqFeatures;
175 #endif //GRT_FFT_FEATURES_HEADER
FFTFeatures(UINT fftWindowSize=512, UINT numChannelsInFFTSignal=1, bool computeMaxFreqFeature=true, bool computeMaxFreqSpectrumRatio=true, bool computeCentroidFeature=true, bool computeTopNFreqFeatures=true, UINT N=10)
virtual bool computeFeatures(const VectorDouble &inputVector)
virtual bool saveModelToFile(string filename) const
virtual ~FFTFeatures(void)
virtual bool loadModelFromFile(string filename)
The FFT class computes the Fourier transform of an N dimensional signal using a Fast Fourier Transfor...
FFTFeatures & operator=(const FFTFeatures &rhs)
virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction)