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