ghmm_gmltransition.h

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

H
91
字号
/* * * created: 26 Feb 2002 by Wasinee Rungsarityotin * authors: Wasinee Rungsarityotin (rungsari@molgen.mpg.de) * file   : $Source$ * $Id: GHMM_GMLTransition.h 267 2003-04-24 17:24:07Z wasinee $ * revision date   : $Date: 2003-04-24 19:24:07 +0200 (Thu, 24 Apr 2003) $  ___copyright__  */#ifndef _GHMM_GMLTRANSITION_H#define _GHMM_GMLTRANSITION_H 1#include <vector>#include <ghmm++/GHMM_Transition.h>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_GMLState;template<class StateType> class GHMM_TransitionT : public GHMM_Transition { public:  /** Constructor. */	  GHMM_TransitionT(XMLIO_Attributes &attrs) : GHMM_Transition(attrs)    {;}    /** Constructor. */  GHMM_TransitionT(StateType* my_source, StateType* my_target)     {;}    /** Destructor. */    /** */  vector<double> probs;   protected:  /** 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) = 0;	  /** 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) = 0;	  virtual void XMLIO_getCharacters(const string& characters) = 0;	};/** Represents transition between two states. Only needed while model is constructed from    xml file. */class GHMM_GMLTransition: public GHMM_TransitionT<GHMM_GMLState> { public:  const char* toString() const;  /** Constructor. */  GHMM_GMLTransition(XMLIO_Attributes &attrs);    GHMM_GMLTransition(GHMM_GMLState* my_source, GHMM_GMLState* my_target, vector<double> my_prob);   private:  /** Called by GHMM_Document when a start tag is received. Tag and       attributes are passed to this function. */  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. */  const int XMLIO_writeContent(XMLIO_Document& doc);  void XMLIO_getCharacters(const string& characters);};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_TRANSITION_H */

⌨️ 快捷键说明

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