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/AnalysisBase.hpp
- Revision:
- 4:99d4d5ea06a2
- Parent:
- 3:7c26b701f363
--- a/MyClasses/AnalysisBase.hpp Mon Dec 14 13:44:42 2015 +0000 +++ b/MyClasses/AnalysisBase.hpp Tue Dec 15 02:39:31 2015 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------- // Base class for spectrum analysis (Header) // -// 2015/12/14, Copyright (c) 2015 MIKAMI, Naoki +// 2015/12/15, Copyright (c) 2015 MIKAMI, Naoki //------------------------------------------------------- #ifndef BASE_ANALYZER_HPP @@ -28,15 +28,21 @@ const int N_FFT_; FftReal fft_; - HammingWindow wHm_; float Norm(Complex x) { return x.real()*x.real() + x.imag()*x.imag(); } private: + HammingWindow wHm_; + float* xData_; // data to be analyzed + float* wData_; // windowd data - virtual void Analyze(const float xn[], float yn[]) = 0; + virtual void Analyze(const float wData[], float db[]) = 0; + + // disallow copy constructor and assignment operator + AnalyzerBase(const AnalyzerBase& ); + AnalyzerBase& operator=(const AnalyzerBase& ); }; } #endif // BASE_ANALYZER_HPP