-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprodHHMM.h
53 lines (44 loc) · 1.21 KB
/
prodHHMM.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
49
50
51
52
53
#ifndef prodHHMM_H
#define prodHHMM_H
#include <vector>
#include <cstdint>
#include <Eigen/Dense>
#include <cmath>
#include <random>
#include "baseHHMM.hpp"
using namespace std;
using namespace Eigen;
using MatrixXld = Matrix<long double,Dynamic,Dynamic>;
using VectorXld = Matrix<long double,Dynamic,1>;
using DM = DiagonalMatrix<long double,Dynamic>;
namespace hhmm{
class TestHHMM;
class prodHHMM final:public baseHHMM{
friend TestHHMM;
protected:
VectorXld mean;
// vector<long double> testemit;
DM var;
public:
long double emitParent;
prodHHMM(uint32_t,uint32_t,baseHHMM*);
~prodHHMM() noexcept {};
//void setEmit(vector<long double> const& x);
// vector<long double>& setEmit(){return testemit;}
long double emit(VectorXld const&) const;
// long double emit(uint32_t i) const;
VectorXld const& getMean() const;
VectorXld& setMean();
DM const& getVariance() const;
DM& setVariance();
void cpyMean(VectorXld const&);
void cpyVar(DM const&);
void swpMean(VectorXld&);
void swpVar(DM&);
void clearParam();
void check();
void initParam(vector<long double> const&);
void log(uint32_t,uint32_t,string const&);
};
}
#endif