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