28 #ifndef GRT_DEADZONE_HEADER 29 #define GRT_DEADZONE_HEADER 31 #include "../CoreModules/PreProcessing.h" 47 DeadZone(
const Float lowerLimit = -0.1,
const Float upperLimit = 0.1,
const UINT numDimensions = 1 );
105 virtual bool save(std::fstream &file)
const;
114 virtual bool load(std::fstream &file);
124 bool init(Float lowerLimit,Float upperLimit,UINT numDimensions);
132 Float filter(
const Float x);
147 Float getLowerLimit()
const;
154 Float getUpperLimit()
const;
162 bool setLowerLimit(Float lowerLimit);
170 bool setUpperLimit(Float upperLimit);
177 static std::string
getId();
188 static const std::string id;
195 #endif //GRT_DEADZONE_HEADER std::string getId() const
Float upperLimit
The upper limit of the dead-zone region.
virtual bool deepCopyFrom(const PreProcessing *rhs)
virtual bool save(const std::string &filename) const
virtual bool reset() override
The DeadZone class sets any values in the input signal that fall within the dead-zone region to zero...
Float lowerLimit
The lower limit of the dead-zone region.
virtual bool process(const VectorFloat &inputVector)
virtual bool load(const std::string &filename)