User Manual, Developers Guide and API Documentation

constanze::BaumWelch Class Reference

this class implement Baum-Welch algorithm Literature: TODO

#include <BaumWelch.hpp>

Collaboration diagram for constanze::BaumWelch:

Collaboration graph
[legend]

List of all members.

Public Member Functions

HMMbaumWelch (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 ()
HMMgetHMM ()
 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

HMMhmm
 represent an object of class HMM


Detailed Description

Definition at line 43 of file BaumWelch.hpp.


Constructor & Destructor Documentation

BaumWelch::BaumWelch (  ) 

Definition at line 31 of file BaumWelch.cpp.

BaumWelch::~BaumWelch (  ) 

Definition at line 35 of file BaumWelch.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 64 of file BaumWelch.hpp.


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

Generated on Sat May 26 03:32:29 2012 for openWNS by  doxygen 1.5.5