annotate SparseHMM.h @ 9:5945b8905d1f

README, copyrights
author Chris Cannam
date Fri, 06 Dec 2013 10:49:00 +0000
parents 99bac62ee2da
children 080fe18f5ebf
rev   line source
matthiasm@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@9 2
matthiasm@0 3 /*
Chris@9 4 pYIN - A fundamental frequency estimator for monophonic audio
Chris@9 5 Centre for Digital Music, Queen Mary, University of London.
Chris@9 6
Chris@9 7 This program is free software; you can redistribute it and/or
Chris@9 8 modify it under the terms of the GNU General Public License as
Chris@9 9 published by the Free Software Foundation; either version 2 of the
Chris@9 10 License, or (at your option) any later version. See the file
Chris@9 11 COPYING included with this distribution for more information.
matthiasm@0 12 */
matthiasm@0 13
matthiasm@0 14 #ifndef _SPARSEHMM_H_
matthiasm@0 15 #define _SPARSEHMM_H_
matthiasm@0 16
matthiasm@0 17 #include <vector>
matthiasm@0 18 #include <cstdio>
matthiasm@0 19
matthiasm@0 20 using std::vector;
matthiasm@0 21 using std::pair;
matthiasm@0 22
matthiasm@0 23 class SparseHMM
matthiasm@0 24 {
matthiasm@0 25 public:
matthiasm@0 26 virtual const std::vector<double> calculateObsProb(const vector<pair<double, double> >);
matthiasm@0 27 const std::vector<int> decodeViterbi(std::vector<vector<double> > obs,
matthiasm@0 28 vector<double> *scale);
matthiasm@0 29 vector<double> init;
matthiasm@0 30 vector<size_t> from;
matthiasm@0 31 vector<size_t> to;
matthiasm@0 32 vector<double> transProb;
matthiasm@0 33 };
matthiasm@0 34
Chris@9 35 #endif