26 #ifndef GRT_MINDIST_HEADER 27 #define GRT_MINDIST_HEADER 30 #include "../../CoreModules/Classifier.h" 52 MinDist(
bool useScaling=
false,
bool useNullRejection=
false,Float nullRejectionCoeff=10.0,UINT numClusters=10);
107 virtual bool clear();
116 virtual bool save( std::fstream &file )
const;
125 virtual bool load( std::fstream &file );
141 UINT getNumClusters()
const;
166 bool setNumClusters(UINT numClusters);
173 static std::string
getId();
182 bool loadLegacyModelFromFile( std::fstream &file );
188 static const std::string id;
194 #endif //GRT_MINDIST_HEADER std::string getId() const
virtual bool recomputeNullRejectionThresholds()
virtual bool predict_(VectorFloat &inputVector)
virtual bool setNullRejectionCoeff(const Float nullRejectionCoeff)
virtual bool save(const std::string &filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
This class implements the MinDist classifier algorithm.
virtual bool train_(ClassificationData &trainingData)
virtual bool load(const std::string &filename)
This is the main base class that all GRT Classification algorithms should inherit from...