Mercurial > hg > pyin
comparison SparseHMM.h @ 145:0432723faf03
Fix compiler warnings (no point in returning const type)
author | Chris Cannam |
---|---|
date | Fri, 24 Mar 2017 15:35:32 +0000 |
parents | 926c292fa3ff |
children | 8404827a4b02 |
comparison
equal
deleted
inserted
replaced
144:9ec558ed83d4 | 145:0432723faf03 |
---|---|
24 | 24 |
25 class SparseHMM | 25 class SparseHMM |
26 { | 26 { |
27 public: | 27 public: |
28 SparseHMM(int fixedLag); | 28 SparseHMM(int fixedLag); |
29 virtual const std::vector<double> | 29 virtual std::vector<double> |
30 calculateObsProb(const vector<pair<double, double> >); | 30 calculateObsProb(const vector<pair<double, double> >); |
31 virtual void build(); | 31 virtual void build(); |
32 const std::vector<int> decodeViterbi(std::vector<vector<double> > obs); | 32 std::vector<int> decodeViterbi(std::vector<vector<double> > obs); |
33 void reset(); | 33 void reset(); |
34 void initialise(vector<double> firstObs); | 34 void initialise(vector<double> firstObs); |
35 int process(vector<double> newObs); | 35 int process(vector<double> newObs); |
36 const vector<int> track(); | 36 vector<int> track(); |
37 // "sparse" HMM definition | 37 // "sparse" HMM definition |
38 int m_fixedLag; | 38 int m_fixedLag; |
39 int m_nState; | 39 int m_nState; |
40 int m_nTrans; | 40 int m_nTrans; |
41 vector<double> m_init; | 41 vector<double> m_init; |