![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <BaumWelch.hpp>

Public Member Functions | |
| HMM * | baumWelch (HMM *initialHMM, std::vector< int > *observationVector, int iterations) |
| baum-welch algorithm. initialHMM: the Hidden Morcov Model, that was at begin initialized observationVector: states sequence iteration: the iterationen of execution of baum-welch algorithm | |
| BaumWelch () | |
| HMM * | getHMM () |
| interface to access HMM from external circumstance | |
| ~BaumWelch () | |
Private Member Functions | |
| std::vector< std::vector < baumWelchDataType > * > * | backward (HMM *initialHMM, std::vector< int > *observationVector) |
| implement backward algorithm. initialHMM: the HMM, that was at begin initialized observationVector: states sequence | |
| baumWelchDataType | calculateGamma (int i, int t, std::vector< std::vector< baumWelchDataType > * > *forwardMatrix, std::vector< std::vector< baumWelchDataType > * > *backwardMatrix, HMM *h) |
| calculate gamma value in state i and time t. i: state i t: time t forwardMatrix: the Matrix, that was calculated with forward procedure backwardMatrix: the Matrix, that was calculated with backward procedure h: object of Hidden Marcov Model | |
| baumWelchDataType | calculateXi (int t, int i, int j, std::vector< int > *observationVector, std::vector< std::vector< baumWelchDataType > * > *forwardMatrix, std::vector< std::vector< baumWelchDataType > * > *backwardMatrix, HMM *h) |
| calculate Xi function of baum-welch algorithm. t: time t i: state i j: state j observationVector: state sequence forwardMatrix: the Matrix, that was calculated with forward procedure backwardMatrix: the Matrix, that was calculated with backward procedure | |
| baumWelchDataType | divide (baumWelchDataType num, baumWelchDataType denom) |
| divide opeation, award 0 value by denom num: numerator denom: denominator | |
| std::vector< std::vector < baumWelchDataType > * > * | forward (HMM *initialHMM, std::vector< int > *observationVector) |
| implement forward algorithm. initialHMM: the HMM, that was at begin initialized observationVector: states sequence | |
Private Attributes | |
| HMM * | hmm |
| represent an object of class HMM | |
Definition at line 43 of file BaumWelch.hpp.
| BaumWelch::BaumWelch | ( | ) |
Definition at line 31 of file BaumWelch.cpp.
| BaumWelch::~BaumWelch | ( | ) |
Definition at line 35 of file BaumWelch.cpp.
| std::vector< std::vector< baumWelchDataType > * > * BaumWelch::backward | ( | HMM * | initialHMM, | |
| std::vector< int > * | observationVector | |||
| ) | [private] |
Definition at line 162 of file BaumWelch.cpp.
| HMM * BaumWelch::baumWelch | ( | HMM * | initialHMM, | |
| std::vector< int > * | observationVector, | |||
| int | iterations | |||
| ) |
Definition at line 40 of file BaumWelch.cpp.
| baumWelchDataType BaumWelch::calculateGamma | ( | int | i, | |
| int | t, | |||
| std::vector< std::vector< baumWelchDataType > * > * | forwardMatrix, | |||
| std::vector< std::vector< baumWelchDataType > * > * | backwardMatrix, | |||
| HMM * | h | |||
| ) | [private] |
calculate gamma_i(t). gamma_i(t): given state sequence O, probability, that at time t in state i
Definition at line 229 of file BaumWelch.cpp.
| baumWelchDataType BaumWelch::calculateXi | ( | int | t, | |
| int | i, | |||
| int | j, | |||
| std::vector< int > * | observationVector, | |||
| std::vector< std::vector< baumWelchDataType > * > * | forwardMatrix, | |||
| std::vector< std::vector< baumWelchDataType > * > * | backwardMatrix, | |||
| HMM * | h | |||
| ) | [private] |
calculate Xi_t(i,j) Xi_t(i,j): probability, that at time t in state i and at time t+1 in state j
Definition at line 248 of file BaumWelch.cpp.
| baumWelchDataType BaumWelch::divide | ( | baumWelchDataType | num, | |
| baumWelchDataType | denom | |||
| ) | [private] |
Definition at line 268 of file BaumWelch.cpp.
| std::vector< std::vector< baumWelchDataType > * > * BaumWelch::forward | ( | HMM * | initialHMM, | |
| std::vector< int > * | observationVector | |||
| ) | [private] |
Definition at line 119 of file BaumWelch.cpp.
| HMM * BaumWelch::getHMM | ( | ) |
Definition at line 277 of file BaumWelch.cpp.
HMM* constanze::BaumWelch::hmm [private] |
Definition at line 64 of file BaumWelch.hpp.
1.5.5