Direct Graphical Models  v.1.7.0
TrainNodeGM.h
1 // Gaussian Model training class interface
2 // Written by Sergey G. Kosov in 2012 for Project X
3 #pragma once
4 
5 #include "TrainNodeGMM.h"
6 
7 namespace DirectGraphicalModels
8 {
9  class CNDGauss;
10  // ======================== Gaussian Model Train Class =========================
18  class CTrainNodeGM : public CTrainNodeGMM
19  {
20  public:
26  DllExport CTrainNodeGM(byte nStates, word nFeatures) : CBaseRandomModel(nStates), CTrainNodeGMM(nStates, nFeatures, 1) {}
27  DllExport ~CTrainNodeGM(void) {}
28 
38  DllExport Mat getNodePotentials(const Mat &featureVector, float weight = 1.0f) {return CTrainNodeGMM::getNodePotentials(featureVector, weight);} // This is done for doxygen comment
39  };
40 }
Base abstract class for random model training.
Mat getNodePotentials(const Mat &featureVectors, const Mat &weights=Mat(), float Z=0.0f) const
Returns a block of node potentials, based on the block of feature vector.
Definition: TrainNode.cpp:54
Gaussian Model training class.
Definition: TrainNodeGM.h:18
CTrainNodeGM(byte nStates, word nFeatures)
Constructor.
Definition: TrainNodeGM.h:26
Mat getNodePotentials(const Mat &featureVector, float weight=1.0f)
Returns the node potential, based on the feature vector.
Definition: TrainNodeGM.h:38
Gaussian Mixture Model training class.
Definition: TrainNodeGMM.h:40