Mercurial > hg > pyin
comparison SparseHMM.h @ 0:99bac62ee2da
added PYIN sources, should be compileable
author | matthiasm |
---|---|
date | Wed, 27 Nov 2013 11:59:49 +0000 |
parents | |
children | 5945b8905d1f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:99bac62ee2da |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 /* | |
3 This file is Copyright (c) 2012 Matthias Mauch | |
4 | |
5 */ | |
6 | |
7 #ifndef _SPARSEHMM_H_ | |
8 #define _SPARSEHMM_H_ | |
9 | |
10 #include <vector> | |
11 #include <cstdio> | |
12 | |
13 using std::vector; | |
14 using std::pair; | |
15 | |
16 class SparseHMM | |
17 { | |
18 public: | |
19 virtual const std::vector<double> calculateObsProb(const vector<pair<double, double> >); | |
20 const std::vector<int> decodeViterbi(std::vector<vector<double> > obs, | |
21 vector<double> *scale); | |
22 vector<double> init; | |
23 vector<size_t> from; | |
24 vector<size_t> to; | |
25 vector<double> transProb; | |
26 }; | |
27 | |
28 #endif |