31 #ifndef GRT_MOVING_AVERAGE_FILTER_HEADER
32 #define GRT_MOVING_AVERAGE_FILTER_HEADER
34 #include "../CoreModules/PreProcessing.h"
148 Float
filter(
const Float x);
182 #endif //GRT_MOVING_AVERAGE_FILTER_HEADER
virtual bool process(const VectorFloat &inputVector)
CircularBuffer< VectorFloat > dataBuffer
A buffer to store the previous N values, N = filterSize.
virtual bool deepCopyFrom(const PreProcessing *preProcessing)
virtual bool loadModelFromFile(std::string filename)
VectorFloat getFilteredData() const
Float filter(const Float x)
virtual bool saveModelToFile(std::string filename) const
UINT filterSize
The size of the filter.
MovingAverageFilter(UINT filterSize=5, UINT numDimensions=1)
MovingAverageFilter & operator=(const MovingAverageFilter &rhs)
UINT inputSampleCounter
A counter to keep track of the number of input samples.
UINT getFilterSize() const
virtual ~MovingAverageFilter()