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

📄 ghmm_sequence.h

📁 一个通用的隐性马尔可夫C代码库 开发环境:C语言 简要说明:这是一个通用的隐性马尔可夫C代码库
💻 H
字号:
/* * created: 21 Feb 2002 by Peter Pipenbacher * authors: Peter Pipenbacher (pipenb@zpr.uni-koeln.de) * file   : $Source: /cvsroot/ghmm/ghmm/ghmm++/GHMM_Sequence.h,v $ * $Id: GHMM_Sequence.h,v 1.5 2003/02/28 15:09:21 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 *  */#ifndef _GHMM_SEQUENCE_H#define _GHMM_SEQUENCE_H 1#include <xmlio/XMLIO_ArrayElement.h>#include "ghmm++/GHMM_Sequences.h"#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_Sequence;class GHMM_Alphabet;/** */class GHMM_Sequence: public XMLIO_ArrayElement<string> { public:  /** Constructor. */  GHMM_Sequence(GHMM_SequenceType my_sequence_type, int len, int weight = 1);  /** Constructor. */  GHMM_Sequence(GHMM_Alphabet* my_alphabet, int len, int weight = 1);  /** Destructor. */  virtual ~GHMM_Sequence();  /** Returns name of class. */  virtual const char* toString() const;  /** */  void resize(int new_len);  /** */  virtual void XMLIO_finishedReading();  /**     Prints one array of sequences in a file.     @param file       output file     @param discrete   switch: 0 means double output for symbols,                         1 means truncate symbols to integer  */  void print(FILE *file, int discrete = 0) const;  /** Sets double value at given position in sequence. */  void setDouble(int index, double value);  /** Sets integer value at given position in sequence. */  void setInt(int index, int value);  /** Type of current sequence. */  GHMM_SequenceType sequence_type;  /** C type int sequence. */  sequence_t*   c_i_sequences;  /** C type double sequence. */  sequence_d_t* c_d_sequences;  /** */  int weight;   private:  /** */  void init();  /** */  void init_INT(GHMM_Alphabet* my_alphabet, int len, int my_weight);  /** */  void init_DOUBLE(int len, int my_weight);  /** Alphabet for discrete sequences .*/  GHMM_Alphabet* alphabet;};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_SEQUENCE_H */

⌨️ 快捷键说明

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