29 #ifndef GRT_THRESHOLD_DETECTION_HEADER 30 #define GRT_THRESHOLD_DETECTION_HEADER 32 #include "GRT/CoreModules/FeatureExtraction.h" 33 #include "GRT/Util/Util.h" 71 virtual bool deepCopyFrom(
const FeatureExtraction *featureExtraction);
137 VectorDouble
update(
double x);
145 VectorDouble
update(
const VectorDouble &x);
163 using MLBase::train_;
164 using MLBase::predict;
165 using MLBase::predict_;
178 #endif //GRT_THRESHOLD_DETECTION_HEADER CircularBuffer< VectorDouble > getBufferData()
Definition: ThresholdDetection.cpp:308
VectorDouble update(double x)
Definition: ThresholdDetection.cpp:239
virtual bool computeFeatures(const VectorDouble &inputVector)
Definition: ThresholdDetection.cpp:85
ThresholdDetection & operator=(const ThresholdDetection &rhs)
Definition: ThresholdDetection.cpp:55
virtual bool loadModelFromFile(string filename)
Definition: ThresholdDetection.cpp:123
UINT bufferLength
Definition: ThresholdDetection.h:168
virtual bool reset()
Definition: ThresholdDetection.cpp:102
Definition: Filter.cpp:23
virtual ~ThresholdDetection()
Definition: ThresholdDetection.cpp:51
double beta
Definition: ThresholdDetection.h:170
Definition: ThresholdDetection.h:37
virtual bool deepCopyFrom(const FeatureExtraction *featureExtraction)
Definition: ThresholdDetection.cpp:68
bool inNoise
Definition: ThresholdDetection.h:171
bool init(UINT bufferLength, UINT numDimensions, double alpha, double beta)
Definition: ThresholdDetection.cpp:212
static RegisterFeatureExtractionModule< ThresholdDetection > registerModule
Definition: ThresholdDetection.h:173
CircularBuffer< VectorDouble > dataBuffer
Definition: ThresholdDetection.h:169
virtual bool saveModelToFile(string filename) const
Definition: ThresholdDetection.cpp:109
ThresholdDetection(UINT bufferLength=100, UINT numDimensions=1, double alpha=4.0, double beta=1.2)
Definition: ThresholdDetection.cpp:28
double alpha
Definition: ThresholdDetection.h:170