37 #ifndef GRT_GMM_HEADER
38 #define GRT_GMM_HEADER
40 #include "../../CoreModules/Classifier.h"
41 #include "../../ClusteringModules/GaussianMixtureModels/GaussianMixtureModels.h"
44 #define GMM_MIN_SCALE_VALUE 0.0001
45 #define GMM_MAX_SCALE_VALUE 1.0
55 GMM(UINT numMixtureModels = 2,
bool useScaling=
false,
bool useNullRejection=
false,Float nullRejectionCoeff=1.0,UINT maxIter=100,Float minChange=1.0e-5);
75 GMM &operator=(
const GMM &rhs);
111 virtual bool clear();
120 virtual bool save( std::fstream &file )
const;
129 virtual bool load( std::fstream &file );
144 UINT getNumMixtureModels();
161 bool setNumMixtureModels(UINT K);
178 bool setMaxIter(UINT maxIter);
187 Float computeMixtureLikelihood(
const VectorFloat &x,UINT k);
188 bool loadLegacyModelFromFile( std::fstream &file );
190 UINT numMixtureModels;
205 #endif //GRT_GMM_HEADER
virtual bool recomputeNullRejectionThresholds()
virtual bool predict_(VectorFloat &inputVector)
bool setMinChange(const Float minChange)
This class implements a MixtureModel, which is a container for holding a class model for the GRT::GMM...
virtual bool save(const std::string filename) const
virtual bool load(const std::string filename)
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool train_(ClassificationData &trainingData)