#include <LeftToRightHMM.h>

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) |
Definition at line 10 of file LeftToRightHMM.h.
| typedef std::vector<int> LeftToRightHMM::Observation |
a vector of integers representing an observed sequence of clusters
Definition at line 14 of file LeftToRightHMM.h.
| LeftToRightHMM::LeftToRightHMM | ( | size_t | nStates, | |
| size_t | alphabetSize | |||
| ) |
| nStates | number of states in this HMM | |
| alphabetSize | size of the output-alphabet |
Definition at line 3 of file LeftToRightHMM.cpp.
| double LeftToRightHMM::evaluate | ( | Observation & | obs | ) |
Evaluate observation
| obs | Observation sequence |
Definition at line 21 of file LeftToRightHMM.cpp.
| Matrix<double>& LeftToRightHMM::getOutputProps | ( | ) | [inline] |
| const size_t LeftToRightHMM::getStateCount | ( | ) | const [inline] |
| Matrix<double>& LeftToRightHMM::getTransitionProps | ( | ) | [inline] |
| void LeftToRightHMM::setOutputProps | ( | const Matrix< double > & | matrix | ) | [inline] |
deserialisation
| matrix | output propabilities |
Definition at line 64 of file LeftToRightHMM.h.
| void LeftToRightHMM::setTransitionProps | ( | const Matrix< double > & | matrix | ) | [inline] |
deserialisation
| 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
| obs | Observation sequence | |
| maxIterations | Stop after this many iterations |
Definition at line 27 of file LeftToRightHMM.cpp.
1.5.7.1