29 #ifndef GRT_FFT_FEATURES_HEADER 30 #define GRT_FFT_FEATURES_HEADER 32 #include "../../CoreModules/FeatureExtraction.h" 52 FFTFeatures(
const UINT fftWindowSize=512,
const UINT numChannelsInFFTSignal=1,
const bool computeMaxFreqFeature =
true,
const bool computeMaxFreqSpectrumRatio =
true,
const bool computeCentroidFeature =
true,
const bool computeTopNFreqFeatures =
true,
const UINT N = 10);
100 virtual bool reset();
109 virtual bool save( std::fstream &file )
const;
118 virtual bool load( std::fstream &file );
134 bool init(
const UINT fftWindowSize,
const UINT numChannelsInFFTSignal,
const bool computeMaxFreqFeature,
const bool computeMaxFreqSpectrumRatio,
const bool computeCentroidFeature,
const bool computeTopNFreqFeatures,
const UINT N);
145 static std::string
getId();
149 UINT numChannelsInFFTSignal;
150 bool computeMaxFreqFeature;
151 bool computeMaxFreqSpectrumRatio;
152 bool computeCentroidFeature;
153 bool computeTopNFreqFeatures;
156 Float maxFreqFeature;
157 Float maxFreqSpectrumRatio;
158 Float centroidFeature;
163 static std::string id;
169 #endif //GRT_FFT_FEATURES_HEADER std::string getId() const
virtual bool save(const std::string &filename) const
virtual bool load(const std::string &filename)