|
The GaussianMixtureDistribution class. More...
#include <MemoryX/core/entity/ProbabilityMeasures.h>
Public Member Functions | |
void | addComponent (const GaussianMixtureComponent &component, const ::Ice::Current &=Ice::emptyCurrent) override |
void | addComponent (const NormalDistributionBasePtr &gaussian, float weight) |
void | addComponents (const GaussianMixtureDistributionBasePtr &other, const ::Ice::Current &=Ice::emptyCurrent) override |
Multiply weight of each GM component with a given constant. More... | |
void | addGaussian (const NormalDistributionBasePtr &gaussian, float weight, const ::Ice::Current &=Ice::emptyCurrent) override |
void | clear (const ::Ice::Current &=Ice::emptyCurrent) override |
armarx::VariantDataClassPtr | clone (const Ice::Current &c=Ice::emptyCurrent) const override |
void | deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override |
GaussianMixtureDistribution () | |
GaussianMixtureDistribution implementation. More... | |
GaussianMixtureDistribution (const GaussianMixtureDistribution &other) | |
GaussianMixtureComponent | getComponent (::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) const override |
virtual float | getDensity (const Eigen::VectorXf &point) |
::Ice::Int | getDimensions (const ::Ice::Current &=Ice::emptyCurrent) const override |
GaussianMixtureComponent | getModalComponent (const ::Ice::Current &=Ice::emptyCurrent) const override |
armarx::VariantTypeId | getType (const Ice::Current &c=Ice::emptyCurrent) const override |
Ice::ObjectPtr | ice_clone () const override |
void | normalize (const ::Ice::Current &=Ice::emptyCurrent) override |
Normalize components weights (i.e. More... | |
std::string | output (const Ice::Current &c=Ice::emptyCurrent) const override |
void | pruneComponents (::Ice::Float threshold, const ::Ice::Current &=Ice::emptyCurrent) override |
Remove all components with weights lower than threshold value. More... | |
void | removeComponent (::Ice::Int index, const ::Ice::Current &=Ice::emptyCurrent) override |
void | scaleComponents (::Ice::Float factor, const ::Ice::Current &=Ice::emptyCurrent) override |
Multiply weight of each GM component with a given constant. More... | |
void | serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override |
void | setComponent (::Ice::Int index, const GaussianMixtureComponent &component, const ::Ice::Current &=Ice::emptyCurrent) override |
::Ice::Int | size (const ::Ice::Current &=Ice::emptyCurrent) const override |
bool | validate (const Ice::Current &c=Ice::emptyCurrent) override |
Static Public Member Functions | |
static GaussianMixtureDistributionPtr | FromProbabilityMeasure (const ProbabilityMeasureBasePtr &probMeasure) |
Convert or approximate given ProbabilityMeasure to a gaussian mixture. More... | |
The GaussianMixtureDistribution class.
Definition at line 298 of file ProbabilityMeasures.h.
GaussianMixtureDistribution implementation.
Definition at line 471 of file ProbabilityMeasures.cpp.
GaussianMixtureDistribution | ( | const GaussianMixtureDistribution & | other | ) |
|
override |
void addComponent | ( | const NormalDistributionBasePtr & | gaussian, |
float | weight | ||
) |
|
override |
Multiply weight of each GM component with a given constant.
factor | constant to multiply with (scaling factor) |
Definition at line 600 of file ProbabilityMeasures.cpp.
|
override |
|
override |
|
inlineoverride |
Definition at line 360 of file ProbabilityMeasures.h.
|
override |
|
static |
Convert or approximate given ProbabilityMeasure to a gaussian mixture.
To special cases implemented so far: probMeasure is a gaussian (NormalDistibution) -> create GM with a single component probMeasure probMeasure is a gaussian mixture -> just return probMeasure itself
probMeasure probability measure to approximate/convert
Definition at line 658 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 496 of file ProbabilityMeasures.cpp.
|
virtual |
Definition at line 644 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 491 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 505 of file ProbabilityMeasures.cpp.
|
inlineoverride |
Definition at line 364 of file ProbabilityMeasures.h.
|
inlineoverride |
|
override |
Normalize components weights (i.e.
sum of weights = 1.0)
Definition at line 634 of file ProbabilityMeasures.cpp.
|
override |
|
override |
Remove all components with weights lower than threshold value.
threshold |
Definition at line 616 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 566 of file ProbabilityMeasures.cpp.
|
override |
Multiply weight of each GM component with a given constant.
factor | constant to multiply with (scaling factor) |
Definition at line 608 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 696 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 550 of file ProbabilityMeasures.cpp.
|
override |
Definition at line 583 of file ProbabilityMeasures.cpp.
|
inlineoverride |
Definition at line 368 of file ProbabilityMeasures.h.