-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseHHMM.h
39 lines (32 loc) · 835 Bytes
/
baseHHMM.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
#ifndef BASEHHMM_H
#define BASEHHMM_H
#include <cstdint>
#include <vector>
#include <string>
using namespace std;
namespace hhmm{
class TestHHMM;
class baseHHMM{
friend TestHHMM;
protected:
uint32_t level;
//transition probability from this->parent to this
long double pi;
//this parameter is used to standardize the pies of child-HHMMs
//in M-step of EM algorithm.
long double stdPi;
public:
baseHHMM* parent;
baseHHMM(uint32_t,baseHHMM*);
virtual ~baseHHMM() = default;
uint32_t getLevel() const;
long double getPi() const;
long double& setPi();
void setPi(long double x);
virtual void clearParam();
virtual void check(){}
virtual void initParam(vector<long double> const&);
virtual void log(uint32_t,uint32_t,string const&);
};
}
#endif