#include <MixtureGF.h>


Public Member Functions | |
| MixtureGF (const MixtureGF &) | |
| MixtureGF (const String &id, unsigned long vectSize, unsigned long distribCount=0) | |
| virtual bool | operator== (const Mixture &) const |
| MixtureGF & | duplicate (const K &, DuplDistrib) const |
| void | addDistrib (const K &, DistribGF &d, weight_t w=0.0) |
| virtual void | addDistrib (const K &, Distrib &d, weight_t w=0.0) |
| void | setDistrib (const K &, DistribGF &d, unsigned long index) |
| virtual void | setDistrib (const K &, Distrib &d, unsigned long index) |
| MixtureGF & | operator= (const MixtureGF &) |
| Mixture & | operator= (const Mixture &) |
| virtual | ~MixtureGF () |
| DistribGF & | getDistrib (unsigned long index) const |
| virtual DistribType | getType () const |
| virtual String | getClassName () const |
| virtual String | toString () const |
Static Public Member Functions | |
| static MixtureGF & | create (const K &, const String &id, unsigned long vectSize, unsigned long distribCount=0) |
Private Member Functions | |
| virtual Mixture & | clone (DuplDistrib) const |
| virtual MixtureStat & | createNewMixtureStatObject (const K &, StatServer &ss, const Config &) const |
Class for a mixture of gaussian distributions with full matrix of covariance (DistribGF objects).
Definition at line 83 of file MixtureGF.h.
| MixtureGF::MixtureGF | ( | const MixtureGF & | m ) |
Definition at line 88 of file MixtureGF.cpp.
References addDistrib(), getDistrib(), alize::Mixture::getDistribCount(), alize::K::k, and alize::Mixture::weight().
Referenced by create().
| MixtureGF::MixtureGF | ( | const String & | id, |
| unsigned long | vectSize, | ||
| unsigned long | distribCount = 0 |
||
| ) | [explicit] |
Definition at line 71 of file MixtureGF.cpp.
References alize::Mixture::_vectSize, addDistrib(), alize::DistribGF::create(), alize::Mixture::equalizeWeights(), and alize::K::k.
| MixtureGF::~MixtureGF | ( | ) | [virtual] |
Definition at line 241 of file MixtureGF.cpp.
Adds a distribution GF to this mixture
| d | DistribGF object to add |
| w | weight of the distribution |
| Exception | if the dimension of the mixture is not equal to the dimension of the distribution |
Definition at line 197 of file MixtureGF.cpp.
References alize::Mixture::_vectSize, alize::Distrib::getVectSize(), alize::K::k, and alize::String::valueOf().
Referenced by addDistrib(), and MixtureGF().
Adds a distribution to this mixture
| d | Distrib object to add |
| w | weight of the distribution |
| Exception | if d is not a DistribGF object |
| Exception | if the dimension of d is not equals to the dimension of the mixture |
Reimplemented from alize::Mixture.
Definition at line 207 of file MixtureGF.cpp.
References addDistrib(), alize::K::k, and NULL.
| Mixture & MixtureGF::clone | ( | DuplDistrib | d ) | const [private, virtual] |
Implements alize::Mixture.
Definition at line 134 of file MixtureGF.cpp.
References alize::DUPL_DISTRIB, alize::K::k, and setDistrib().
Referenced by duplicate().
| MixtureGF & MixtureGF::create | ( | const K & | , |
| const String & | id, | ||
| unsigned long | vectSize, | ||
| unsigned long | distribCount = 0 |
||
| ) | [static] |
Definition at line 120 of file MixtureGF.cpp.
References alize::Object::assertMemoryIsAllocated(), and MixtureGF().
Referenced by createNewMixtureStatObject().
| MixtureStat & MixtureGF::createNewMixtureStatObject | ( | const K & | , |
| StatServer & | ss, | ||
| const Config & | |||
| ) | const [private, virtual] |
Internal usage
Implements alize::Mixture.
Definition at line 216 of file MixtureGF.cpp.
References create(), and alize::K::k.
| MixtureGF & MixtureGF::duplicate | ( | const K & | , |
| DuplDistrib | d | ||
| ) | const |
Reimplemented from alize::Mixture.
Definition at line 147 of file MixtureGF.cpp.
References clone().
| String MixtureGF::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::Mixture.
Definition at line 222 of file MixtureGF.cpp.
| DistribGF & MixtureGF::getDistrib | ( | unsigned long | index ) | const |
Returns a distribution
| index | position of the distribution |
| IndexOutOfBoundsException |
Reimplemented from alize::Mixture.
Definition at line 172 of file MixtureGF.cpp.
Referenced by MixtureGF(), operator==(), and toString().
| DistribType MixtureGF::getType | ( | ) | const [virtual] |
Implements alize::Mixture.
Definition at line 220 of file MixtureGF.cpp.
References alize::DistribType_GF.
| Exception | if the dimensions or the numbers of distributions does not match or if the types are not the same |
Definition at line 152 of file MixtureGF.cpp.
References alize::Mixture::assign().
| Exception | if the dimensions or the numbers of distributions does not match or if the types are not the same |
Implements alize::Mixture.
Definition at line 160 of file MixtureGF.cpp.
References alize::Mixture::assign(), and NULL.
| bool MixtureGF::operator== | ( | const Mixture & | m ) | const [virtual] |
Implements alize::Mixture.
Definition at line 98 of file MixtureGF.cpp.
References alize::Mixture::getDistrib(), getDistrib(), alize::Mixture::getDistribCount(), NULL, and alize::Mixture::weight().
Replace a distribution by an other one
| d | DistribGF object to set |
| index | position of the distribution to be replaced |
| IndexOutOfBoundsException | |
| Exception | if d is not a DistribGF object |
| Exception | if the dimension of d is not equals to the dimension of the mixture |
Reimplemented from alize::Mixture.
Definition at line 188 of file MixtureGF.cpp.
References alize::K::k, NULL, and setDistrib().
Replace a distribution GF by an other one
| d | DistribGF object to set |
| index | position of the distribution to be replaced |
| IndexOutOfBoundsException | |
| Exception | if the dimension of d is not equals to the dimension of the mixture |
Definition at line 178 of file MixtureGF.cpp.
References alize::Mixture::_vectSize, alize::Distrib::getVectSize(), alize::K::k, and alize::String::valueOf().
Referenced by clone(), and setDistrib().
| String MixtureGF::toString | ( | ) | const [virtual] |
This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object
Reimplemented from alize::Mixture.
Definition at line 224 of file MixtureGF.cpp.
References alize::Mixture::_id, alize::Mixture::_vectSize, alize::Object::getAddress(), alize::DistribGF::getClassName(), getDistrib(), alize::Mixture::getDistribCount(), alize::String::valueOf(), and alize::Mixture::weight().
1.7.2