ghmm_computation.h

来自「General Hidden Markov Model Library 一个通用」· C头文件 代码 · 共 70 行

H
70
字号
/*  created:   authors:   file   : $Source$  $Id: GHMM_Computation.h 267 2003-04-24 17:24:07Z wasinee $  __copyright__*/#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 + =
减小字号Ctrl + -
显示快捷键?