Spectrum analyzer using DISCO-F746NG. Spectrum is calculated by FFT or linear prediction. The vowel data is in "vowel_data.hpp"
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed BUTTON_GROUP
SpactrumAnalysisClasses/LinearPrediction.hpp
- Committer:
- MikamiUitOpen
- Date:
- 2018-10-09
- Revision:
- 6:f385940fbdb1
- Parent:
- 0:c35b8a23a863
File content as of revision 6:f385940fbdb1:
//----------------------------------------------------- // Class for linear prediction (Header) // Copyright (c) 2014 MIKAMI, Naoki, 2014/12/30 //----------------------------------------------------- #ifndef LINEAR_PREDICTION_HPP #define LINEAR_PREDICTION_HPP #include "mbed.h" namespace Mikami { class LinearPred { public: LinearPred(int nData, int order); ~LinearPred(); bool Execute(const float x[], float a[], float &em); public: const uint16_t N_DATA_; const uint16_t ORDER_; float* r_; float* k_; float* am_; void AutoCorr(const float x[]); bool Durbin(float a[], float &em); }; } #endif // LINEAR_PREDICTION_HPP