#include <GaussianMixtureModel.h>
Public Member Functions | |
| void | addKernel (const PSMLearner::GaussianKernel &pKernel) |
| GaussianMixtureModel () | |
| std::vector< PSMLearner::GaussianKernel > | getKernels () const |
| unsigned int | getNumberOfKernels () |
| void | initializeVisualizer (boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > mSuperior) |
| void | normalizeWeights () |
| void | save (boost::property_tree::ptree &pPt, std::string pNode) |
| ~GaussianMixtureModel () | |
Private Attributes | |
| std::vector< PSMLearner::GaussianKernel > | mKernels |
This class is a wrapper for a gaussian mixture model (GMM).
Definition at line 40 of file GaussianMixtureModel.h.
| ProbabilisticSceneRecognition::GaussianMixtureModel::GaussianMixtureModel | ( | ) |
Constructor.
Definition at line 22 of file GaussianMixtureModel.cpp.
| ProbabilisticSceneRecognition::GaussianMixtureModel::~GaussianMixtureModel | ( | ) |
Destructor.
Definition at line 26 of file GaussianMixtureModel.cpp.
| void ProbabilisticSceneRecognition::GaussianMixtureModel::addKernel | ( | const PSMLearner::GaussianKernel & | pKernel | ) |
Adds a kernel to the distribution.
| pKernel | The kernel to add. |
Definition at line 30 of file GaussianMixtureModel.cpp.
| std::vector< PSMLearner::GaussianKernel > ProbabilisticSceneRecognition::GaussianMixtureModel::getKernels | ( | ) | const |
returns the kernels of the GMM
Definition at line 77 of file GaussianMixtureModel.cpp.
| unsigned int ProbabilisticSceneRecognition::GaussianMixtureModel::getNumberOfKernels | ( | ) |
Returns the number of kernels.
Definition at line 54 of file GaussianMixtureModel.cpp.
| void ProbabilisticSceneRecognition::GaussianMixtureModel::initializeVisualizer | ( | boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > | mSuperior | ) |
Initializes the visualization mechanism.
| mSuperior | The superior visualizer coordinating the scene visualizers. |
Definition at line 59 of file GaussianMixtureModel.cpp.
| void ProbabilisticSceneRecognition::GaussianMixtureModel::normalizeWeights | ( | ) |
Normalizes the weights to sum up to one. This is necessary after removing duplicate kernels.
Definition at line 41 of file GaussianMixtureModel.cpp.
| void ProbabilisticSceneRecognition::GaussianMixtureModel::save | ( | boost::property_tree::ptree & | pPt, |
| std::string | pNode | ||
| ) |
Saves the content to XML.
| pPt | Datastructure for handling XML operations. |
| pNode | The name of the XML node that should contain the distribution. |
Definition at line 65 of file GaussianMixtureModel.cpp.
|
private |
The gaussian kernels the GMM is made of.
Definition at line 98 of file GaussianMixtureModel.h.