1 /**************************************************************
2  *** RHmm package
3  ***
4  *** File: cLogBaumWelch.h
5  ***
6  *** Author: Ollivier TARAMASCO <Ollivier.Taramasco@imag.fr>
7  *** Author: Sebastian BAUER <sebastian.bauer@charite.de>
8  ***
9  **************************************************************/
10 
11 #ifndef _CLOGBAUMWELCH_H_
12 #define _CLOGBAUMWELCH_H_
13 #pragma once
14 #include "cInParam.h"
15 #include "cHmm.h"
16 #include "LogProb.h"
17 
18 class cLogBaumWelch
19 {       private :
20                         uint    mvNSample               ;
21                         uint*   mvT                             ;
22         public :
23                         cDMatrix*      mLogAlpha       ;
24                         cDMatrix*      mLogBeta        ;
25                         cDVector*      mLogRho         ;
26                         cDMatrix*      mLogGamma       ;
27                         cDMatrix**     mLogXsi         ;
28                         cDMatrix*      mSumLogXsi      ;
29                         cDVector       mLogVrais       ;
30         public :
31                 cLogBaumWelch(uint theNSample, uint* theT, uint theNClass) ;
32                 cLogBaumWelch(const cInParam &theInParam) ;
33                 void LogForwardBackward(cDMatrix* theCondProba, cHmm& theHMM) ;
GetSampleSize(uint theN)34                 uint GetSampleSize(uint theN){ return mvT[theN] ;}
35                 virtual ~cLogBaumWelch() ;
36 } ;
37 #endif //_CLOGBAUMWELCH_H_
38