📄 scluster.c
字号:
/******************************************************************************* author : Bernhard Knab filename : ghmm/tools/scluster.c created : 2001-04-20 by Achim Gaedke from hmm/src/scluster.c $Id: scluster.c,v 1.2 2001/04/22 20:22:06 achim 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*******************************************************************************/#include <stdio.h>#include <ghmm/mes.h>#include <ghmm/rng.h>#include <ghmm/scluster.h>int main(int argc, char* argv[]) {#define CUR_PROC "scluster_main" int exitcode = -1; gsl_rng_init(); if (argc == 5 || argc == 6) { if (argc == 6) gsl_rng_set(RNG,atoi(argv[5])); else { /* random init */ gsl_rng_timeseed(RNG); /*previously: gsl_rng_set(RNG,0); */ } printf("Clustering Sequences with start partition\n"); switch(atoi(argv[4])) { case 0: printf("SP_BEST (best model)\n"); break; case 1: printf("NO_SP (no start partition)\n"); break; case 2: printf("SP_KM (partition from k-means)\n"); break; case 3: printf("SP_ZUF (random start partition)\n"); break; default: printf("argv[4] %d not valid. must be in [0, 3]\n", atoi(argv[4])); return exitcode; } exitcode = scluster_hmm(argv); } else { mes_prot ("Insufficient arguments. Usage: scluster [sequence file][model file][outfile][labels]<seed>\n"); } /*------------------------------------------------------------------------*/ mes(MES_WIN, "\n(%2.2T): Program finished with exitcode %d.\n", exitcode ); mes_exit(); return(exitcode);# undef CUR_PROC} /* main */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -