![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
No photo version of "F746_SpectralAnalysis_Example".
Dependencies: BSP_DISCO_F746NG BUTTON_GROUP LCD_DISCO_F746NG TS_DISCO_F746NG UIT_FFT_Real mbed
Diff: SpactrumAnalysisClasses/LinearPrediction.hpp
- Revision:
- 0:9d7f931c704a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SpactrumAnalysisClasses/LinearPrediction.hpp Tue Nov 24 12:34:55 2015 +0000 @@ -0,0 +1,31 @@ +//----------------------------------------------------- +// 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