Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG BUTTON_GROUP LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed
Diff: MyClasses_Functions/CepstrumAnalysis.hpp
- Revision:
- 0:0e5131366580
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MyClasses_Functions/CepstrumAnalysis.hpp Wed Jan 06 12:46:15 2016 +0000 @@ -0,0 +1,39 @@ +//------------------------------------------------------- +// Class for spectrum analysis using cepstrum (Header) +// +// 2015/12/15, Copyright (c) 2015 MIKAMI, Naoki +//------------------------------------------------------- + +#ifndef CEPSTRUM_ANALYZER_HPP +#define CEPSTRUM_ANALYZER_HPP + +#include "AnalysisBase.hpp" + + +namespace Mikami +{ + class CepstrumAnalyzer : public AnalyzerBase + { + public: + CepstrumAnalyzer(int nData, int nFft, int nLifter); + virtual ~CepstrumAnalyzer(); + + private: + const int N_LIFTER_; + + Complex* yFft_; // output of FFT + float* lifter_; // lifter + Complex* db_; // real part: log spectrun + float* cep_; // cepstrum + float* cepLft_; // liftered cepstrum + Complex* cepFt_; // smoothed spectrum + + virtual void Analyze(const float xn[], float yn[]); + + // disallow copy constructor and assignment operator + CepstrumAnalyzer(const CepstrumAnalyzer& ); + CepstrumAnalyzer& operator=(const CepstrumAnalyzer& ); + }; +} +#endif // CEPSTRUM_ANALYZER_HPP +