Public Member Functions | Static Public Member Functions | Private Member Functions

alize::MixtureGF Class Reference

#include <MixtureGF.h>

Inheritance diagram for alize::MixtureGF:
Inheritance graph
[legend]
Collaboration diagram for alize::MixtureGF:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MixtureGF (const MixtureGF &)
 MixtureGF (const String &id, unsigned long vectSize, unsigned long distribCount=0)
virtual bool operator== (const Mixture &) const
MixtureGFduplicate (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)
MixtureGFoperator= (const MixtureGF &)
Mixtureoperator= (const Mixture &)
virtual ~MixtureGF ()
DistribGFgetDistrib (unsigned long index) const
virtual DistribType getType () const
virtual String getClassName () const
virtual String toString () const

Static Public Member Functions

static MixtureGFcreate (const K &, const String &id, unsigned long vectSize, unsigned long distribCount=0)

Private Member Functions

virtual Mixtureclone (DuplDistrib) const
virtual MixtureStatcreateNewMixtureStatObject (const K &, StatServer &ss, const Config &) const

Detailed Description

Class for a mixture of gaussian distributions with full matrix of covariance (DistribGF objects).

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 83 of file MixtureGF.h.


Constructor & Destructor Documentation

MixtureGF::MixtureGF ( const MixtureGF m )
MixtureGF::MixtureGF ( const String id,
unsigned long  vectSize,
unsigned long  distribCount = 0 
) [explicit]
MixtureGF::~MixtureGF (  ) [virtual]

Definition at line 241 of file MixtureGF.cpp.


Member Function Documentation

void MixtureGF::addDistrib ( const K ,
DistribGF d,
weight_t  w = 0.0 
)

Adds a distribution GF to this mixture

Parameters:
dDistribGF object to add
wweight of the distribution
Exceptions:
Exceptionif 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().

void MixtureGF::addDistrib ( const K ,
Distrib d,
weight_t  w = 0.0 
) [virtual]

Adds a distribution to this mixture

Parameters:
dDistrib object to add
wweight of the distribution
Exceptions:
Exceptionif d is not a DistribGF object
Exceptionif 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

Returns:
the name of the class of the object as a String

Implements alize::Mixture.

Definition at line 222 of file MixtureGF.cpp.

DistribGF & MixtureGF::getDistrib ( unsigned long  index ) const

Returns a distribution

Parameters:
indexposition of the distribution
Returns:
a reference to the distribution
Exceptions:
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.

MixtureGF & MixtureGF::operator= ( const MixtureGF m )
Exceptions:
Exceptionif 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().

Mixture & MixtureGF::operator= ( const Mixture m ) [virtual]
Exceptions:
Exceptionif 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]
void MixtureGF::setDistrib ( const K ,
Distrib d,
unsigned long  index 
) [virtual]

Replace a distribution by an other one

Parameters:
dDistribGF object to set
indexposition of the distribution to be replaced
Exceptions:
IndexOutOfBoundsException
Exceptionif d is not a DistribGF object
Exceptionif 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().

void MixtureGF::setDistrib ( const K ,
DistribGF d,
unsigned long  index 
)

Replace a distribution GF by an other one

Parameters:
dDistribGF object to set
indexposition of the distribution to be replaced
Exceptions:
IndexOutOfBoundsException
Exceptionif 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

Returns:
a description 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().


The documentation for this class was generated from the following files: