-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestHHMM.h
48 lines (44 loc) · 1.18 KB
/
TestHHMM.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef TESTHHMM_H
#define TESTHHMM_H
#include <cppunit/extensions/HelperMacros.h>
#include "HHMM.hpp"
namespace hhmm{
class TestHHMM: public CPPUNIT_NS::TestFixture
{
private:
CPPUNIT_TEST_SUITE(TestHHMM);
//CPPUNIT_TEST(TestEmitProb);
//CPPUNIT_TEST(TestForward);
//CPPUNIT_TEST(TestBackward);
//CPPUNIT_TEST(TestAuxIn);
//CPPUNIT_TEST(TestAuxOut);
//CPPUNIT_TEST(TestHorizon);
//CPPUNIT_TEST(TestVertical);
//CPPUNIT_TEST(TestCalcTmpPi);
//CPPUNIT_TEST(TestCalcTmpTrans);
//CPPUNIT_TEST(TestCalcTmpEmit);
CPPUNIT_TEST(TestEM);
CPPUNIT_TEST_SUITE_END();
HHMM* hhmm;
public:
void setUp();
void tearDown();
protected:
void TestConstruct();
void TestEmitProb();
void TestForward();
void TestBackward();
void debugAlphaAndBeta(HHMM& hhmm,Sequence& seq,baseHHMM* root,parameters* param);
void TestAuxIn();
void TestAuxOut();
void debugInAndOut(HHMM& hhmm,Sequence& seq,baseHHMM* root,parameters* param);
void TestHorizon();
void TestVertical();
void TestCalcGamma();
void TestCalcTmpPi();
void TestCalcTmpTrans();
void TestCalcTmpEmit();
void TestEM();
};
}
#endif