31 #ifndef GRT_MOVING_AVERAGE_FILTER_HEADER
32 #define GRT_MOVING_AVERAGE_FILTER_HEADER
34 #include "../CoreModules/PreProcessing.h"
104 virtual bool save(std::fstream &file)
const;
113 virtual bool load(std::fstream &file);
122 bool init(UINT filterSize,UINT numDimensions);
130 Float filter(
const Float x);
168 #endif //GRT_MOVING_AVERAGE_FILTER_HEADER
virtual bool deepCopyFrom(const PreProcessing *rhs)
CircularBuffer< VectorFloat > dataBuffer
A buffer to store the previous N values, N = filterSize.
VectorFloat getFilteredData() const
virtual bool save(const std::string filename) const
virtual bool load(const std::string filename)
UINT filterSize
The size of the filter.
virtual bool process(const VectorFloat &inputVector)
UINT inputSampleCounter
A counter to keep track of the number of input samples.
UINT getFilterSize() const