diff SparseHMM.h @ 132:926c292fa3ff fixedlag

fixed lag smoothing for pitch track working
author Matthias Mauch <mail@matthiasmauch.net>
date Fri, 03 Jul 2015 17:34:38 +0100
parents b877df85ad9e
children 0432723faf03
line wrap: on
line diff
--- a/SparseHMM.h	Fri Jul 03 14:09:05 2015 +0100
+++ b/SparseHMM.h	Fri Jul 03 17:34:38 2015 +0100
@@ -25,7 +25,7 @@
 class SparseHMM
 {
 public:
-    SparseHMM();
+    SparseHMM(int fixedLag);
     virtual const std::vector<double>
                            calculateObsProb(const vector<pair<double, double> >);
     virtual void           build();
@@ -33,8 +33,9 @@
     void                   reset();
     void                   initialise(vector<double> firstObs);
     int                    process(vector<double> newObs);
-    vector<int>            finalise();
+    const vector<int>      track();
     // "sparse" HMM definition
+    int m_fixedLag;
     int m_nState;
     int m_nTrans;
     vector<double> m_init;