⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ghmm_transition.h

📁 General Hidden Markov Model Library 一个通用的隐马尔科夫模型的C代码库
💻 H
字号:
/*  created: 19 Feb 2002 by Peter Pipenbacher  authors: Peter Pipenbacher (pipenb@zpr.uni-koeln.de)  file   : $Source$  $Id: GHMM_Transition.h 267 2003-04-24 17:24:07Z wasinee $    __copyright__*/#ifndef _GHMM_TRANSITION_H#define _GHMM_TRANSITION_H 1#include <xmlio/XMLIO_Element.h>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_Transition;class GHMM_State;/** Represents transition between two states. Only needed while model is constructed from    xml file. */class GHMM_Transition: public XMLIO_Element { public:  /** For internal use of reading xml files. */  enum GHMM_TransitionReadingType {GHMM_TRANSITION_READING_NONE, GHMM_TRANSITION_READING_PROB};  /** Constructor. */  GHMM_Transition() {}   /** Constructor. */  GHMM_Transition(XMLIO_Attributes &attrs);  /** Constructor. */  GHMM_Transition(GHMM_State* my_source, GHMM_State* my_target, double my_prob);  /** Destructor. */  virtual ~GHMM_Transition();  /** Returns name of class. */  virtual const char* toString() const;  /** ID of source state. */  string source;  /** ID of source target. */  string target;  /** Probability of transition. */  double prob; protected:  /** Called by XMLIO_Document when a end tag is found.       This happens when a sub element has finished reading its      content. By default this function does nothing. */  virtual void XMLIO_endTag(const string& tag);  /** Collects all character data. */  virtual void XMLIO_getCharacters(const string& characters);  /** Called by GHMM_Document when a start tag is received. Tag and       attributes are passed to this function. */  virtual XMLIO_Element* XMLIO_startTag(const string& tag, XMLIO_Attributes &attrs);  /** Writes the content (XML Spec[43]) of this element.      You should use the public XMLIO_Document::write* functions.      @return Returns the number of bytes written,      but is negative when an error occured and 0 by default. */  virtual const int XMLIO_writeContent(XMLIO_Document& doc);  /** Current reading state. */  GHMM_TransitionReadingType reading;};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_TRANSITION_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -