📄 ghmm_computation.h
字号:
/* created: authors: file : $Source: /cvsroot/ghmm/ghmm/ghmm++/GHMM_Computation.h,v $ $Id: GHMM_Computation.h,v 1.1 2003/04/24 17:23:54 wasinee Exp $ Copyright (C) 1998-2001, ZAIK/ZPR, Universit鋞 zu K鰈n This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#include <ghmm/sdmodel.h>#include <ghmm++/begin_code.h>#include <vector>#ifdef HAVE_NAMESPACESnamespace std {#endifclass Viterbi {private: enum DFSFLAG { DONE, NOTVISITED, VISITED }; double ***log_in_a; double **log_b; double *phi; double *phi_new; int **psi; vector<int> stateind; DFSFLAG *colors; int *doneTime; vector<int> topo_order; public: int *state_seq; Viterbi() { log_in_a = NULL; log_b = NULL; psi = NULL; } ~Viterbi(); Viterbi( sdmodel *mo, int len); void Viterbi_precompute( sdmodel *mo, int *o, int len); /** Return the log score of the sequence */ double Viterbi_runme ( sdmodel *mo, int *o, int len); double Viterbi_runme_silent ( sdmodel *mo, int *o, int len); void print_path (int len, char *ts); void DFSVisit( sdmodel *mo, int j, int &counter); void DFS( sdmodel *mo );};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>/* _GHMM_VITERBI_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -