AGC and SimpleAGC: Use double for moving average storage type

pull/27/head
f4exb 2017-05-11 23:40:31 +02:00
rodzic 59ee73e979
commit 55099c73c5
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ public:
protected:
Real m_u0;
Real m_R; // objective mag
MovingAverage<Real> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
MovingAverage<double> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
int m_historySize;
int m_count;
};
@ -109,7 +109,7 @@ private:
Real m_fill; // refill average at this level
Real m_cutoff; // consider samples only above this level
Real m_clip; // never go below this level
MovingAverage<Real> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
MovingAverage<double> m_moving_average; // Averaging engine. The stack length conditions the smoothness of AGC.
};
#endif /* INCLUDE_GPL_DSP_AGC_H_ */