📄 ghmm_gmldiscretemodel.h
字号:
/* * * created: 26 Feb 2002 by Wasinee Rungsarityotin * authors: Wasinee Rungsarityotin (rungsari@molgen.mpg.de) * file : $Source: /cvsroot/ghmm/ghmm/ghmm++/GHMM_GMLDiscreteModel.h,v $ * $Id: GHMM_GMLDiscreteModel.h,v 1.3 2003/04/24 17:23:59 wasinee Exp $ * revision date : $Date: 2003/04/24 17:23:59 $ _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 _ */#ifndef _GHMM_GMLDISCRETEMODEL_H#define _GHMM_GMLDISCRETEMODEL_H 1#include <ghmm/model.h>#include <xmlio/XMLIO_Element.h>#include "ghmm++/GHMM_GMLAlphabet.h"#include "ghmm++/GHMM_GMLState.h"#include "ghmm++/GHMM_GMLTransition.h"// Template #include <ghmm++/GHMM_DiscreteModelT.hh>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_Alphabet;/** Discrete HMM model (wrapper around model in C data structure). */class GHMM_GMLDiscreteModel : public GHMM_DiscreteModelT<model, state, GHMM_GMLState, GHMM_GMLTransition> { public: /** Constructor. */ GHMM_GMLDiscreteModel(); /** Constructor. @param number_of_states Number of the states. @param alphabet_size Size of the alphabet. @param prior Prior for the a priori probability for the model (-1 for none). */ GHMM_GMLDiscreteModel(int number_of_states, int alphabet_size, double prior=-1); /** Constructor. Construct from c model. Object now is owner of this model. @param my_model model as C data structure. */ GHMM_GMLDiscreteModel(model* my_model); /** Constructor. */ GHMM_GMLDiscreteModel(GHMM_GMLAlphabet* alphabet); /** Returns alphabet of model or NULL, if no such alphabet exists. */ GHMM_GMLAlphabet* getAlphabet() const; /** */ const int XMLIO_writeContent(XMLIO_Document& writer); /** Alphabet of model. */ GHMM_GMLAlphabet* gmlalphabet; protected: /** */ void createTransitions(); /** */ vector<GHMM_GMLTransition*> transitions; void init();};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_DISCRETEMODEL_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -