kopia lustrzana https://github.com/f4exb/sdrangel
Moving average: fixed initialization
rodzic
8d565f8187
commit
33e171bd9b
|
@ -8,7 +8,7 @@
|
|||
|
||||
template<typename Type> class MovingAverage {
|
||||
public:
|
||||
MovingAverage(int historySize, Type initial)
|
||||
MovingAverage(int historySize, Type initial) : m_index(0)
|
||||
{
|
||||
resize(historySize, initial);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue