29 #ifndef GRT_TIMESERIES_BUFFER_HEADER
30 #define GRT_TIMESERIES_BUFFER_HEADER
32 #include "../../CoreModules/FeatureExtraction.h"
138 bool init(UINT bufferSize,UINT numDimensions);
195 #endif //GRT_TIMESERIES_BUFFER_HEADER
virtual bool loadModelFromFile(std::string filename)
virtual bool saveModelToFile(std::string filename) const
TimeseriesBuffer & operator=(const TimeseriesBuffer &rhs)
virtual bool predict(VectorFloat inputVector)
virtual bool predict_(VectorFloat &inputVector)
bool setBufferSize(UINT bufferSize)
VectorFloat update(Float x)
virtual bool train(ClassificationData trainingData)
TimeseriesBuffer(UINT bufferSize=5, UINT numDimensions=1)
virtual ~TimeseriesBuffer()
virtual bool train_(ClassificationData &trainingData)
virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction)
virtual bool computeFeatures(const VectorFloat &inputVector)
CircularBuffer< VectorFloat > dataBuffer
A buffer used to store the timeseries data.
Vector< VectorFloat > getDataBuffer()