diff SparseHMM.h @ 0:99bac62ee2da

added PYIN sources, should be compileable
author matthiasm
date Wed, 27 Nov 2013 11:59:49 +0000
parents
children 5945b8905d1f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SparseHMM.h	Wed Nov 27 11:59:49 2013 +0000
@@ -0,0 +1,28 @@
+/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
+/*
+    This file is Copyright (c) 2012 Matthias Mauch
+
+*/
+
+#ifndef _SPARSEHMM_H_
+#define _SPARSEHMM_H_
+
+#include <vector>
+#include <cstdio>
+
+using std::vector;
+using std::pair;
+
+class SparseHMM
+{
+public:
+    virtual const std::vector<double> calculateObsProb(const vector<pair<double, double> >);
+    const std::vector<int> decodeViterbi(std::vector<vector<double> > obs, 
+                                   vector<double> *scale);
+    vector<double> init;
+    vector<size_t> from;
+    vector<size_t> to;
+    vector<double> transProb;
+};
+
+#endif
\ No newline at end of file