#include <MixtureGD.h>


Public Member Functions | |
| MixtureGD (const MixtureGD &) | |
| MixtureGD (const String &id, unsigned long vectSize, unsigned long distribCount=0) | |
| virtual bool | operator== (const Mixture &) const |
| MixtureGD & | duplicate (const K &, DuplDistrib) const |
| MixtureGD & | operator= (const MixtureGD &) |
| void | addDistrib (const K &, DistribGD &d, weight_t w=0.0) |
| virtual void | addDistrib (const K &, Distrib &d, weight_t w=0.0) |
| void | setDistrib (const K &, DistribGD &d, unsigned long index) |
| virtual void | setDistrib (const K &, Distrib &d, unsigned long index) |
| Mixture & | operator= (const Mixture &) |
| virtual | ~MixtureGD () |
| DistribGD & | getDistrib (unsigned long index) const |
| virtual DistribType | getType () const |
| virtual String | getClassName () const |
| virtual String | toString () const |
Static Public Member Functions | |
| static MixtureGD & | 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 &, const Config &) const |
Class for a mixture of gaussian distributions with diagonal vector of covariance (DistribGD objects).
Definition at line 84 of file MixtureGD.h.
| MixtureGD::MixtureGD | ( | const MixtureGD & | m ) |
Definition at line 89 of file MixtureGD.cpp.
References addDistrib(), getDistrib(), alize::Mixture::getDistribCount(), alize::K::k, and alize::Mixture::weight().
Referenced by create().
| MixtureGD::MixtureGD | ( | const String & | id, |
| unsigned long | vectSize, | ||
| unsigned long | distribCount = 0 |
||
| ) | [explicit] |
Definition at line 72 of file MixtureGD.cpp.
References alize::Mixture::_vectSize, addDistrib(), alize::DistribGD::create(), alize::Mixture::equalizeWeights(), and alize::K::k.
| MixtureGD::~MixtureGD | ( | ) | [virtual] |
Definition at line 242 of file MixtureGD.cpp.
Adds a distribution GD to this mixture
| d | DistribGD 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 198 of file MixtureGD.cpp.
References alize::Mixture::_vectSize, alize::Distrib::getVectSize(), alize::K::k, and alize::String::valueOf().
Referenced by addDistrib(), and MixtureGD().
Adds a distribution to this mixture
| d | Distrib object to add |
| w | weight of the distribution |
| Exception | if d is not a DistribGD object |
| Exception | if the dimension of d is not equals to the dimension of the mixture |
Reimplemented from alize::Mixture.
Definition at line 208 of file MixtureGD.cpp.
References addDistrib(), alize::K::k, and NULL.
| Mixture & MixtureGD::clone | ( | DuplDistrib | d ) | const [private, virtual] |
Implements alize::Mixture.
Definition at line 135 of file MixtureGD.cpp.
References alize::DUPL_DISTRIB, alize::K::k, and setDistrib().
Referenced by duplicate().
| MixtureGD & MixtureGD::create | ( | const K & | , |
| const String & | id, | ||
| unsigned long | vectSize, | ||
| unsigned long | distribCount = 0 |
||
| ) | [static] |
Definition at line 121 of file MixtureGD.cpp.
References alize::Object::assertMemoryIsAllocated(), and MixtureGD().
Referenced by createNewMixtureStatObject().
| MixtureStat & MixtureGD::createNewMixtureStatObject | ( | const K & | , |
| StatServer & | ss, | ||
| const Config & | |||
| ) | const [private, virtual] |
Internal usage
Implements alize::Mixture.
Definition at line 217 of file MixtureGD.cpp.
References create(), and alize::K::k.
| MixtureGD & MixtureGD::duplicate | ( | const K & | , |
| DuplDistrib | d | ||
| ) | const |
Reimplemented from alize::Mixture.
Definition at line 148 of file MixtureGD.cpp.
References clone().
| String MixtureGD::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::Mixture.
Definition at line 223 of file MixtureGD.cpp.
| DistribGD & MixtureGD::getDistrib | ( | unsigned long | index ) | const |
Returns a distribution
| index | position of the distribution |
| IndexOutOfBoundsException |
Reimplemented from alize::Mixture.
Definition at line 173 of file MixtureGD.cpp.
Referenced by MixtureGD(), operator==(), and toString().
| DistribType MixtureGD::getType | ( | ) | const [virtual] |
Implements alize::Mixture.
Definition at line 221 of file MixtureGD.cpp.
References alize::DistribType_GD.
| 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 161 of file MixtureGD.cpp.
References alize::Mixture::assign(), and NULL.
| Exception | if the dimensions or the numbers of distributions does not match or if the types are not the same |
Definition at line 153 of file MixtureGD.cpp.
References alize::Mixture::assign().
| bool MixtureGD::operator== | ( | const Mixture & | m ) | const [virtual] |
Implements alize::Mixture.
Definition at line 99 of file MixtureGD.cpp.
References alize::Mixture::getDistrib(), getDistrib(), alize::Mixture::getDistribCount(), NULL, and alize::Mixture::weight().
Replace a distribution by an other one
| d | DistribGD object to set |
| index | position of the distribution to be replaced |
| IndexOutOfBoundsException | |
| Exception | if d is not a DistribGD object |
| Exception | if the dimension of d is not equals to the dimension of the mixture |
Reimplemented from alize::Mixture.
Definition at line 189 of file MixtureGD.cpp.
References alize::K::k, NULL, and setDistrib().
Replace a distribution GD by an other one
| d | DistribGD 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 179 of file MixtureGD.cpp.
References alize::Mixture::_vectSize, alize::Distrib::getVectSize(), alize::K::k, and alize::String::valueOf().
Referenced by clone(), and setDistrib().
| String MixtureGD::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 225 of file MixtureGD.cpp.
References alize::Mixture::_id, alize::Mixture::_vectSize, alize::Object::getAddress(), alize::DistribGD::getClassName(), getDistrib(), alize::Mixture::getDistribCount(), alize::String::valueOf(), and alize::Mixture::weight().
1.7.2