29 #ifndef GRT_MINDISTMODEL_HEADER
30 #define GRT_MINDISTMODEL_HEADER
32 #include "../../Util/GRTCommon.h"
33 #include "../../ClusteringModules/KMeans/KMeans.h"
64 bool train(UINT classLabel,
MatrixFloat &trainingData,UINT numClusters,Float minChange,UINT maxNumEpochs);
66 void recomputeThresholdValue();
68 UINT getClassLabel()
const;
69 UINT getNumFeatures()
const;
70 UINT getNumClusters()
const;
71 UINT getDistanceMode()
const;
72 Float getRejectionThreshold()
const;
73 Float getGamma()
const;
74 Float getTrainingMu()
const;
75 Float getTrainingSigma()
const;
78 bool setClassLabel(UINT classLabel);
80 bool setGamma(Float gamma);
81 bool setRejectionThreshold(Float rejectionThreshold);
82 bool setTrainingSigma(Float trainingSigma);
83 bool setTrainingMu(Float trainingMu);
86 Float SQR(Float x){
return x*x; }
90 Float rejectionThreshold;
99 #endif //GRT_MINDISTMODEL_HEADER
MinDistModel & operator=(const MinDistModel &rhs)