latest version v1.9 - last update 10 Apr 2010 |
This class represents a single multivariate (ie multidimensional ) score density function within a state of a hidden markov model. More...
#include <ltiHiddenMarkovModel.h>
Public Member Functions | |
singleDensity () | |
singleDensity (const singleDensity &other) | |
virtual | ~singleDensity () |
singleDensity & | copy (const singleDensity &other) |
singleDensity & | operator= (const singleDensity &other) |
const char * | getTypeName () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
double | weightScore |
dvector | mean |
dvector | scalingFactor |
This class represents a single multivariate (ie multidimensional ) score density function within a state of a hidden markov model.
The dimensions of the density function are assumed to be independent of each other.
lti::hiddenMarkovModel::singleDensity::singleDensity | ( | ) |
default constructor
lti::hiddenMarkovModel::singleDensity::singleDensity | ( | const singleDensity & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::hiddenMarkovModel::singleDensity::~singleDensity | ( | ) | [virtual] |
destructor
singleDensity& lti::hiddenMarkovModel::singleDensity::copy | ( | const singleDensity & | other | ) |
copy data of "other" singleDensity.
Please note that the status string will _NOT_ be copied!
Reimplemented from lti::ioObject.
const char* lti::hiddenMarkovModel::singleDensity::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::ioObject.
singleDensity& lti::hiddenMarkovModel::singleDensity::operator= | ( | const singleDensity & | other | ) |
assigment operator (alias for copy(other)).
other | the singleDensity to be copied |
Reimplemented from lti::ioObject.
virtual bool lti::hiddenMarkovModel::singleDensity::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
virtual bool lti::hiddenMarkovModel::singleDensity::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
The mean vector.
In other words the center of this density function.
The densities weight expressed as score.
The weight score is -ln(w), where w would be the corresponding probability associated with this single density.
The weights are required in mixture densities, which consist of several single densities, to rate the contribution of each single density. The sum over all weights w in a mixture density must be one.