33 #ifndef GRT_CLASS_LABEL_FILTER_HEADER
34 #define GRT_CLASS_LABEL_FILTER_HEADER
36 #include "../Util/GRTCommon.h"
37 #include "../CoreModules/PostProcessing.h"
96 virtual bool process(
const VectorDouble &inputVector);
105 virtual bool reset();
158 UINT
filter(UINT predictedClassLabel);
199 #endif //GRT_CLASS_LABEL_FILTER_HEADER
virtual bool saveModelToFile(string filename) const
virtual bool deepCopyFrom(const PostProcessing *postProcessing)
UINT bufferSize
The size of the Class Label Filter buffer.
virtual bool process(const VectorDouble &inputVector)
UINT minimumCount
The minimum count sets the minimum number of class label values that must be present in the class lab...
bool setMinimumCount(UINT minimumCount)
ClassLabelFilter & operator=(const ClassLabelFilter &rhs)
UINT filteredClassLabel
The most recent filtered class label value.
CircularBuffer< UINT > buffer
The class label filter buffer.
bool setBufferSize(UINT bufferSize)
UINT filter(UINT predictedClassLabel)
virtual ~ClassLabelFilter()
UINT getFilteredClassLabel()
ClassLabelFilter(UINT minimumCount=1, UINT bufferSize=1)
virtual bool loadModelFromFile(string filename)