亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? esig_asc.c

?? 隱馬爾科夫模型工具箱
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* ----------------------------------------------------------- *//*                                                             *//*                          ___                                *//*                       |_| | |_/   SPEECH                    *//*                       | | | | \   RECOGNITION               *//*                       =========   SOFTWARE                  *//*                                                             *//*                                                             *//* ----------------------------------------------------------- *//*         Copyright: Microsoft Corporation                    *//*          1995-2000 Redmond, Washington USA                  *//*                    http://www.microsoft.com                 *//*                                                             *//*   Use of this software is governed by a License Agreement   *//*    ** See the file License for the Conditions of Use  **    *//*    **     This banner notice must not be removed      **    *//*                                                             *//* ----------------------------------------------------------- *//* * Example programs for Esignal public external file format. * Ascii I/O. * * Author:  Rod Johnson */#include <esignal.h>#include <ctype.h>/* * LOCAL CONSTANTS */#define MAX_FLD_DEPTH   200#define STR_ALLOC_SIZE  100#define Q(X)        QUOTE(X)#define QUOTE(X)    #X#define DBL_W       23#define DBL_FMT     "%.16g"#define DBL_WFMT    "%#" Q(DBL_W) ".16g"#define FLT_W       14#define FLT_FMT     "%.8g"#define FLT_WFMT    "%#" Q(FLT_W) ".8g"#define LNG_W       11#define LNG_FMT     "%ld"#define LNG_WFMT    "%" Q(LNG_W) "ld"#define ULN_W       11#define ULN_FMT     "%lu"#define ULN_WFMT    "%" Q(ULN_W) "lu"#define SHR_W       6#define SHR_FMT     "%d"#define SHR_WFMT    "%" Q(SHR_W) "d"#define USH_W       5#define USH_FMT     "%u"#define USH_WFMT    "%" Q(USH_W) "u"#define SCH_W       4#define SCH_FMT     "%d"#define SCH_WFMT    "%" Q(SCH_W) "d"#define UCH_W       3#define UCH_FMT     "%u"#define UCH_WFMT    "%" Q(UCH_W) "u"#define DBLCX_W     DBL_W#define DBLCX_FMT   DBL_FMT " " DBL_FMT#define DBLCX_WFMT  "(" DBL_WFMT ", " DBL_WFMT ")"#define FLTCX_W     FLT_W#define FLTCX_FMT   FLT_FMT " " FLT_FMT#define FLTCX_WFMT  "(" FLT_WFMT ", " FLT_WFMT ")"#define LNGCX_W     LNG_W#define LNGCX_FMT   LNG_FMT " " LNG_FMT#define LNGCX_WFMT  "(" LNG_WFMT ", " LNG_WFMT ")"#define SHRCX_W     SHR_W#define SHRCX_FMT   SHR_FMT " " SHR_FMT#define SHRCX_WFMT  "(" SHR_WFMT ", " SHR_WFMT ")"#define SCHCX_W     SCH_W#define SCHCX_FMT   SCH_FMT " " SCH_FMT#define SCHCX_WFMT  "(" SCH_WFMT ", " SCH_WFMT ")"#define CHR_W       2#define WCH_W       6/* *  LOCAL FUNCTION DECLARATIONS *//* Functions for input */static int  ReadAsciiData(FieldSpec *field, FILE *file);static int  ReadAsciiArray(Array *array, FILE *file);static int  ReadAsciiFieldSpec(FieldSpec **field, int depth,                               char **names, FILE *file);static int  ReadAsciiFieldStruct(FieldSpec **field,                                 char *name, FILE *file);static int  ReadAsciiName(int depth, char **names, FILE *file);static int  ReadAsciiType(short *type, FILE *file);static int  ReadAsciiDims(short *rank, long**dim, FILE *file);static int  ReadAsciiMisc(int rank, char **units,                          double *scale, double *offset,                          char ***axis_names, FILE *file);static int  ReadAsciiString(char **string, FILE *file);static int  ReadAsciiDouble(double *x, FILE *file);static int  ReadAsciiAxisNames(char ***axis_names,                               int rank, FILE *file);static int  ReadAsciiOccurrence(short *occurrence, FILE *file);static int  AsciiRead(void *data, int type, long length, FILE *file);static int  ReadAsciiEscape(unsigned long *val, FILE *file);static int  ReadAsciiNewline(FILE *file);static int  SkipSpace(int ch, FILE *file);static int  SkipComment(FILE *file);static int  GetNonSpace(FILE *file);static int  ReadSpace(FILE *file);static int  ReadOptSpace(FILE *file);static int  AddChar(int ch, char **str, long *alloc_len, long *len);/* Functions for output */static int  WriteAsciiData(FieldSpec *field,                           FILE *file, Annot *annotate);static int  AsciiWriteSub(void *data, int type, long length,                          FILE *file, int rank, long *dim, Annot *annotate);static int  AsciiWrite(void *data, int type,                       long length, FILE *file, Annot *annotate);static int  WriteAsciiArray(Array *array, FILE *file, Annot *annotate);static int  WriteAsciiFieldSpec(FieldSpec *field,                                int depth, FILE *file, Annot *annotate);static int  WriteAsciiString(char *data, FILE *file);static int  AsciiWriteChar(char *data, long length, FILE *file);static int  AsciiWriteWchar(Wchar *data, long length, FILE *file);static long ApproxWidth(int type);/* * PUBLIC FUNCTION DEFINITIONS * - ReadAsciiFieldList * - ReadAsciiRecord * - ReadAsciiSamples * - WriteAsciiFieldList * - WriteAsciiRecord * - WriteAsciiSamples *//* * Read field list in Ascii format from file.  Return TRUE on success, * FALSE on failure. */intReadAsciiFieldList(FieldList    *listp,                   FILE         *file){   static char  *names[MAX_FLD_DEPTH]; /* field name components */   FieldList    list;   int          name_len;       /* number of name components */   FieldSpec    *spec;   if (file == NULL)      {         DebugMsg(1, "ReadAsciiFieldList: NULL file");         return FALSE;      }   list = NULL;   name_len = ReadAsciiName(0, names, file);   while (name_len == 1)      {         name_len = ReadAsciiFieldSpec(&spec, 1, names, file);         if (spec == NULL || !AddField(&list, spec))            {               if (list != NULL)                  FreeFieldList(list);               DebugMsg(2, ((spec == NULL)                            ? "ReadAsciiFieldList: couldn't read field spec."                            : ("ReadAsciiFieldList: "                               "couldn't add field spec to list.")));               return FALSE;            }      }   if (listp != NULL)      *listp = list;   if (name_len != 0)      {         DebugMsg(1, "ReadAsciiFieldList: bad name length.");         return FALSE;      }   return TRUE;}/* * Read one record in Ascii format from file into the "data" members of * the field specs on a NULL-terminated linear array of REQUIRED and * OPTIONAL fields, like those produced by TypeOrder and FieldOrder. * Return TRUE on success, FALSE on failure. */intReadAsciiRecord(FieldSpec **fields,                FILE      *file){   int     ch;   long    i;   if (file == NULL || fields == NULL)      {         DebugMsg(1, "ReadAsciiRecord: NULL argument.");         return FALSE;      }   for (i = 0 ; fields[i] != NULL; i++)      {         if (fields[i]->occurrence == OPTIONAL)            {               if (!ReadOptSpace(file))                  {                     DebugMsg(2, "ReadAsciiRecord: EOF encountered.");                     return FALSE;                  }               ch = getc(file);               if (ch == '*')                  {                     fields[i]->present = FALSE;                  }               else                  {                     fields[i]->present = TRUE;                     ungetc(ch, file);                     if (!ReadAsciiData(fields[i], file))                        {                           DebugMsg(2, ("ReadAsciiRecord: "                                        "couldn't read data for OPTIONAL field."));                           return FALSE;                        }                  }            }         else           /* REQUIRED field */            {               if (!ReadAsciiData(fields[i], file))                  {                     DebugMsg(1, ("ReadAsciiRecord: "                                  "couldn't read data for REQUIRED field."));                     return FALSE;                  }            }         if (!ReadSpace(file))            {               DebugMsg(1, ("ReadAsciiRecord: "                            "couldn't skip space at end of field."));               return FALSE;            }      }   return TRUE;}/* * Read nrec one-field records in Ascii format from file into the array * indicated by data.  The field is specified by fields, * a NULL-terminated linear array like those produced by TypeOrder * and FieldOrder and containing exactly one REQUIRED field. * Return the number of complete records read. */longReadAsciiSamples(void       *data,                 long       nrec,                 FieldSpec  **fields,                 FILE       *file){   int          type;   long length;   FieldSpec    *field;   if (data == NULL)      {         DebugMsg(1, "ReadAsciiSamples: NULL data pointer.");         return 0;      }   if (nrec < 0)      {         DebugMsg(1, ("ReadAsciiSamples: "                      "negative number or records specified."));         return 0;      }   if (fields == NULL || (field = fields[0]) == NULL || fields[1] != NULL       || field->occurrence != REQUIRED)      {         DebugMsg(1, "ReadAsciiSamples: bad \"fields\" array.");         return 0;      }   if (file == NULL)      {         DebugMsg(1, "ReadAsciiSamples: NULL file pointer.");         return 0;      }   type = field->type;   if (type == NO_TYPE)      return 0;   length = FieldLength(field);   if (nrec*length == 0)      return nrec;   return AsciiRead(data, type, nrec*length, file) / length;}/* * Write field list to file in Ascii format. * If annotate != NULL, add annotations in "[]" for readability. * Return TRUE on success, FALSE on failure. */intWriteAsciiFieldList(FieldList list,                    FILE      *file,                    Annot     *annotate){   int     i;                   /* loop index */   if (file == NULL || list == NULL)      {         DebugMsg(1, "WriteAsciiFieldList: NULL argument.");         return FALSE;      }   for (i = 0; list[i] != NULL; i++)      if (!WriteAsciiFieldSpec(list[i], 1, file, annotate))         {            DebugMsg(1, "WriteAsciiFieldList: Failed writing field spec.");            return FALSE;         }   return TRUE;         /* Success. */}/* * Write to file one record in Ascii format, consisting of the contents * of the "data" members of the field specs on a NULL-terminated linear * array of REQUIRED and OPTIONAL fields, like those produced by * TypeOrder and FieldOrder. * If annotate != NULL, add annotations in "[]" for readability. * Return TRUE on success, FALSE on failure. */intWriteAsciiRecord(FieldSpec **fields,    /* linear array of fields */                 FILE      *file,       /* output file */                 Annot     *annotate)   /* supply annotations? */{   long i;   FieldSpec    *field;   /* Check arguments. */   if (file == NULL || fields == NULL)      {         DebugMsg(1, "WriteAsciiRecord: NULL argument.");         return FALSE;      }   /* Write record number if annotating. */   if (annotate != NULL)      {         fprintf(file, "[Record %ld]\n", annotate->recnum);         annotate->recnum++;         annotate->indent = 4;      }   /* Traverse NULL-terminated list of fields. */   for (i = 0; (field = fields[i]) != NULL; i++)      {         if (annotate != NULL)  /* Write field name if annotating. */            {               fprintf(file, "  [%s]", field->fullname);            }         if (field->occurrence == OPTIONAL && !field->present)            fprintf(file, (annotate != NULL) ? " *\n" : "*\n");         else            {               if (annotate != NULL && field->rank == 0)                  fprintf(file, "  ");               if (WriteAsciiData(field, file, annotate))                  fprintf(file, "\n");               else                  {                     DebugMsg(1, "WriteAsciiRecord: Failed writing field.");                     return FALSE;                  }            }      }   return TRUE;         /* Success. */}/* * Write nrec one-field records in Ascii format to file from the * array indicated by data.  The field is specified by fields, a * NULL-terminated linear array like those produced by TypeOrder * and FieldOrder and containing exactly one REQUIRED field. * Return the number of complete records written. */longWriteAsciiSamples(void      *data,                  long      nrec,                  FieldSpec **fields,                  FILE      *file,                  Annot     *annotate){   int          type;   long length;   long rtn;   FieldSpec    *field;   int          i, rank;   long j, step, stride, recnum;   if (data == NULL)      {         DebugMsg(1, "WriteAsciiSamples: NULL data pointer.");         return 0;      }   if (nrec < 0)      {         DebugMsg(1, ("WriteAsciiSamples: "                      "negative number of records specified."));         return 0;      }   if (fields == NULL || (field = fields[0]) == NULL || fields[1] != NULL       || field->occurrence != REQUIRED)      {         DebugMsg(1, "WriteAsciiSamples: bad \"fields\" array.");         return 0;      }   if (file == NULL)      {         DebugMsg(1, "WriteAsciiSamples: NULL file pointer.");         return 0;      }   type = field->type;   if (type == NO_TYPE)      return 0;   length = FieldLength(field);   if (nrec*length == 0)      return nrec;   if (annotate == NULL)      {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影在线免费观看| 麻豆91精品视频| 日韩国产欧美在线观看| 国产精品综合二区| 在线一区二区三区| 久久久久国产精品人| 亚洲成人激情综合网| 国产成人午夜精品影院观看视频 | 图片区小说区国产精品视频| 国产自产v一区二区三区c| 欧美亚洲一区二区三区四区| 国产欧美日韩综合精品一区二区| 亚洲1区2区3区4区| av电影一区二区| 精品国产露脸精彩对白| 一区二区三区精品久久久| 国产成人在线观看| 欧美一区二区在线免费播放 | 成人美女视频在线观看| 亚洲精品一区二区三区四区高清| 亚洲成人激情社区| 色婷婷一区二区| 国产精品美日韩| 国产成人综合网| 久久久亚洲午夜电影| 国模一区二区三区白浆| 日韩一本二本av| 天天射综合影视| 欧美三级乱人伦电影| 一区二区免费在线播放| 色婷婷久久久久swag精品| 国产精品夫妻自拍| 成人免费不卡视频| 国产日产欧美一区二区三区| 国产精品自拍一区| 国产亚洲婷婷免费| 国产白丝精品91爽爽久久| 久久婷婷国产综合国色天香| 国产一区二区三区| 欧美国产日韩a欧美在线观看 | 国产色爱av资源综合区| 国产一区二区三区久久悠悠色av| 久久久久久久久久久99999| 国产精品资源网站| 欧美高清一级片在线观看| 国产**成人网毛片九色| 中文字幕一区二区三区四区不卡| 99re视频这里只有精品| 亚洲精品亚洲人成人网在线播放| 日本精品一区二区三区高清 | 麻豆精品视频在线观看免费| 精品粉嫩超白一线天av| 成人午夜视频网站| 亚洲欧美乱综合| 欧美精品精品一区| 国产一区二区中文字幕| 国产精品免费人成网站| av资源网一区| 亚洲va国产va欧美va观看| 欧美电影免费观看高清完整版在线 | 国产99精品国产| 中文字幕一区二| 欧美日韩国产小视频在线观看| 蜜臀99久久精品久久久久久软件| 精品不卡在线视频| 97久久久精品综合88久久| 亚洲gay无套男同| 亚洲精品一线二线三线| 99精品桃花视频在线观看| 天天做天天摸天天爽国产一区| 日韩视频免费直播| 99热精品国产| 日本欧美一区二区| 国产精品久久久99| 在线播放91灌醉迷j高跟美女| 国产毛片精品视频| 亚洲第一会所有码转帖| 久久综合精品国产一区二区三区| 91日韩在线专区| 老色鬼精品视频在线观看播放| 欧美国产视频在线| 欧美日韩精品一区视频| 丁香婷婷综合色啪| 天天av天天翘天天综合网| 久久精品欧美一区二区三区麻豆| 色国产综合视频| 久草精品在线观看| 一区二区三区高清| 国产日韩亚洲欧美综合| 欧美肥妇bbw| 色综合激情五月| 国产乱国产乱300精品| 日韩电影免费一区| 玉米视频成人免费看| 久久亚洲精精品中文字幕早川悠里 | 欧美一级高清片| 色8久久精品久久久久久蜜 | 韩国一区二区三区| 亚洲国产成人va在线观看天堂| 欧美激情综合在线| 精品日韩欧美在线| 51午夜精品国产| 欧美色网一区二区| 色哦色哦哦色天天综合| 成人网在线播放| 国产精品66部| 国产一区二区网址| 天天综合天天综合色| 伊人色综合久久天天人手人婷| 国产精品伦一区二区三级视频| 精品欧美一区二区在线观看| 欧美一区二区三区精品| 欧美日高清视频| 欧美日韩国产欧美日美国产精品| 91视频com| 在线亚洲一区二区| 色综合色狠狠天天综合色| 波多野结衣亚洲一区| 国产91丝袜在线播放九色| 国产风韵犹存在线视精品| 国产凹凸在线观看一区二区| 国产乱色国产精品免费视频| 国产一区二区三区久久悠悠色av| 精品亚洲欧美一区| 国产精品小仙女| 国产91清纯白嫩初高中在线观看| 国产成人鲁色资源国产91色综| 国产在线一区观看| 成人一区二区视频| 不卡视频一二三四| 在线观看日韩高清av| 在线亚洲一区二区| 欧美日韩高清一区二区不卡| 欧美日本一道本| 日韩免费高清电影| 久久午夜免费电影| 亚洲欧美一区二区三区国产精品| 亚洲精品福利视频网站| 亚洲成人黄色影院| 久久99在线观看| 国产999精品久久久久久| 99久久久国产精品免费蜜臀| 欧美日本一区二区| 2021久久国产精品不只是精品| 亚洲国产精品激情在线观看| 亚洲日本在线a| 午夜免费欧美电影| 狠狠色丁香婷综合久久| 粉嫩欧美一区二区三区高清影视| 99国产欧美久久久精品| 欧美日韩国产成人在线免费| 精品久久人人做人人爽| 国产精品精品国产色婷婷| 亚洲一区二区影院| 久久精品99久久久| 972aa.com艺术欧美| 欧美在线视频日韩| 欧美电影免费观看高清完整版 | 精品免费国产二区三区| 中文字幕日本不卡| 免费成人在线网站| 色妹子一区二区| 国产精品国产三级国产普通话三级 | 男女性色大片免费观看一区二区| 国产一区二区三区蝌蚪| 欧美在线制服丝袜| 国产精品麻豆视频| 理论电影国产精品| 欧美日韩在线直播| 国产精品看片你懂得| 蜜桃久久av一区| 色综合久久88色综合天天| 国产欧美视频在线观看| 免费久久99精品国产| 色婷婷综合久久久久中文一区二区| 日韩欧美123| 亚洲国产一二三| 成人性生交大片免费| 精品久久一二三区| 日日夜夜免费精品| 色综合咪咪久久| 国产女人aaa级久久久级 | 91精品国产91综合久久蜜臀| 亚洲色欲色欲www在线观看| 韩国三级在线一区| 欧美一二三区精品| 午夜欧美电影在线观看| 欧美网站一区二区| 一区二区在线免费观看| 成人免费视频网站在线观看| 精品国产三级电影在线观看| 天堂va蜜桃一区二区三区漫画版| 99久久婷婷国产| 一区在线中文字幕| 成人av电影在线网| 国产精品色一区二区三区| 国产精品性做久久久久久| 久久九九国产精品| 国产一区高清在线| 欧美国产乱子伦|