33 #ifndef GRT_MINDIST_HEADER
34 #define GRT_MINDIST_HEADER
37 #include "../../CoreModules/Classifier.h"
52 MinDist(
bool useScaling=
false,
bool useNullRejection=
false,Float nullRejectionCoeff=10.0,UINT numClusters=10);
107 virtual bool clear();
180 #endif //GRT_MINDIST_HEADER
virtual bool saveModelToFile(std::fstream &file) const
virtual bool deepCopyFrom(const Classifier *classifier)
Vector< MinDistModel > getModels() const
MinDist & operator=(const MinDist &rhs)
virtual bool predict_(VectorFloat &inputVector)
virtual bool loadModelFromFile(std::fstream &file)
This class implements the MinDist classifier algorithm.
virtual bool recomputeNullRejectionThresholds()
bool loadLegacyModelFromFile(std::fstream &file)
virtual bool train_(ClassificationData &trainingData)
MinDist(bool useScaling=false, bool useNullRejection=false, Float nullRejectionCoeff=10.0, UINT numClusters=10)
virtual bool setNullRejectionCoeff(Float nullRejectionCoeff)
UINT getNumClusters() const
bool setNumClusters(UINT numClusters)