comparison SparseHMM.h @ 156:3faac48d491d

Pass by (const) reference
author Chris Cannam
date Tue, 19 Nov 2019 11:52:58 +0000
parents 8404827a4b02
children
comparison
equal deleted inserted replaced
155:81f025823a5c 156:3faac48d491d
26 { 26 {
27 public: 27 public:
28 SparseHMM(int fixedLag); // set fixedLag == 0 when doing full Viterbi 28 SparseHMM(int fixedLag); // set fixedLag == 0 when doing full Viterbi
29 29
30 virtual std::vector<double> calculateObsProb 30 virtual std::vector<double> calculateObsProb
31 (const vector<pair<double, double> >) = 0; 31 (const vector<pair<double, double> > &) = 0;
32 32
33 virtual void build(); 33 virtual void build();
34 std::vector<int> decodeViterbi(std::vector<vector<double> > obs); 34 std::vector<int> decodeViterbi(std::vector<vector<double> > obs);
35 void reset(); 35 void reset();
36 void initialise(vector<double> firstObs); 36 void initialise(vector<double> firstObs);