29 #ifndef GRT_LEAKY_INTEGRATOR_HEADER
30 #define GRT_LEAKY_INTEGRATOR_HEADER
32 #include "../CoreModules/PreProcessing.h"
84 virtual bool process(
const VectorDouble &inputVector);
120 bool init(
const double leakRate,
const UINT numDimensions);
128 double update(
const double x);
136 VectorDouble
update(
const VectorDouble &x);
167 #endif //GRT_LeakyIntegrator_HEADER
bool setLeakRate(const double leakRate)
double leakRate
The current leak rate.
virtual bool deepCopyFrom(const PreProcessing *preProcessing)
virtual bool loadModelFromFile(string filename)
virtual bool loadModelFromFile(fstream &file)
virtual ~LeakyIntegrator()
virtual bool process(const VectorDouble &inputVector)
virtual bool saveModelToFile(string filename) const
LeakyIntegrator(const double leakRate=0.99, const UINT numDimensions=1)
virtual bool saveModelToFile(fstream &file) const
VectorDouble y
A buffer holding the previous input value(s)
double update(const double x)
LeakyIntegrator & operator=(const LeakyIntegrator &rhs)