LeftToRightHMM Class Reference
[Classification classes]

#include <LeftToRightHMM.h>

Collaboration diagram for LeftToRightHMM:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< int > Observation
 a vector of integers representing an observed sequence of clusters

Public Member Functions

 LeftToRightHMM (size_t nStates, size_t alphabetSize)
double evaluate (Observation &obs)
void train (Observation &obs, size_t maxIterations)
const size_t getStateCount () const
Matrix< double > & getTransitionProps ()
Matrix< double > & getOutputProps ()
void setTransitionProps (const Matrix< double > &matrix)
void setOutputProps (const Matrix< double > &matrix)


Detailed Description

Class representing a left-to-right-HMM

Definition at line 10 of file LeftToRightHMM.h.


Member Typedef Documentation

typedef std::vector<int> LeftToRightHMM::Observation

a vector of integers representing an observed sequence of clusters

Definition at line 14 of file LeftToRightHMM.h.


Constructor & Destructor Documentation

LeftToRightHMM::LeftToRightHMM ( size_t  nStates,
size_t  alphabetSize 
)

Parameters:
nStates number of states in this HMM
alphabetSize size of the output-alphabet

Definition at line 3 of file LeftToRightHMM.cpp.


Member Function Documentation

double LeftToRightHMM::evaluate ( Observation obs  ) 

Evaluate observation

Parameters:
obs Observation sequence
Returns:
Propability of observation seqence

Definition at line 21 of file LeftToRightHMM.cpp.

Matrix<double>& LeftToRightHMM::getOutputProps (  )  [inline]

serialisation

Returns:
output propabilities

Definition at line 52 of file LeftToRightHMM.h.

const size_t LeftToRightHMM::getStateCount (  )  const [inline]

serialisation

Returns:
state count

Definition at line 40 of file LeftToRightHMM.h.

Matrix<double>& LeftToRightHMM::getTransitionProps (  )  [inline]

serialisation

Returns:
transition propabilities

Definition at line 46 of file LeftToRightHMM.h.

void LeftToRightHMM::setOutputProps ( const Matrix< double > &  matrix  )  [inline]

deserialisation

Parameters:
matrix output propabilities

Definition at line 64 of file LeftToRightHMM.h.

void LeftToRightHMM::setTransitionProps ( const Matrix< double > &  matrix  )  [inline]

deserialisation

Parameters:
matrix transition propabilities

Definition at line 58 of file LeftToRightHMM.h.

void LeftToRightHMM::train ( Observation obs,
size_t  maxIterations 
)

Train the HMM to recognize obs

Parameters:
obs Observation sequence
maxIterations Stop after this many iterations

Definition at line 27 of file LeftToRightHMM.cpp.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1