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

📄 viterbi.h

📁 一个通用的隐性马尔可夫C代码库 开发环境:C语言 简要说明:这是一个通用的隐性马尔可夫C代码库
💻 H
字号:
/*******************************************************************************  author       : Bernhard Knab  filename     : ghmm/ghmm/viterbi.h  created      : TIME: 09:07:57     DATE: Fri 19. December 1997  $Id: viterbi.h,v 1.6 2003/10/10 13:10:14 cic99 Exp $Copyright (C) 1998-2001, ZAIK/ZPR, Universit鋞 zu K鰈nThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*******************************************************************************/#ifndef VITERBI_H#define VITERBI_H#ifdef __cplusplusextern "C" {#endif#include <ghmm/model.h>/**@name Viterbi-Algorithmus *//*@{ (Doc++-Group: viterbi) *//**  Viterbi algorithm. Calculates the Viterbi path (the optimal path trough  the model) and the Viterbi probability to a given model and a given   sequence. The matrices in the local_store struct are allocated using  stat_matrix_d_alloc.  @return Viterbi path  @param mo:    model  @param o:     sequence  @param len:   length of the sequence  @param log_p: probability of the sequence in the Viterbi path  */int *viterbi(model *mo, int *o, int len, double *log_p);/**  Calculates the logarithmic probability to a given path through the   states (does not have to be the Viterbi path), given sequence and  a model.  @param mo:        model  @param o:         sequence  @param len:       length of the sequence  @param state_seq: path through the states  @return log P  */double viterbi_logp(model *mo, int *o, int len, int *state_seq);#ifdef __cplusplus}#endif#endif/*@} (Doc++-Group: viterbi) */

⌨️ 快捷键说明

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