Real-time spectrum analyzer for ST Nucleo F401RE using Seeed Studio 2.8'' TFT Touch Shield V2.0.
Dependencies: SeeedStudioTFTv2 UITDSP_ADDA UIT_FFT_Real mbed
LinearPrediction.hpp
00001 //----------------------------------------------------- 00002 // Class for linear prediction (Header) 00003 // Copyright (c) 2014 MIKAMI, Naoki, 2014/12/30 00004 //----------------------------------------------------- 00005 00006 #ifndef LINEAR_PREDICTION_HPP 00007 #define LINEAR_PREDICTION_HPP 00008 00009 #include "mbed.h" 00010 00011 namespace Mikami 00012 { 00013 class LinearPred 00014 { 00015 public: 00016 LinearPred(int nData, int order); 00017 ~LinearPred(); 00018 bool Execute(const float x[], float a[], float &em); 00019 public: 00020 const uint16_t N_DATA_; 00021 const uint16_t ORDER_; 00022 00023 float* r_; 00024 float* k_; 00025 float* am_; 00026 00027 void AutoCorr(const float x[]); 00028 bool Durbin(float a[], float &em); 00029 }; 00030 } 00031 #endif // LINEAR_PREDICTION_HPP
Generated on Wed Jul 13 2022 10:14:59 by 1.7.2