亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩av在线发布| 欧美午夜影院一区| 91丨九色丨黑人外教| 欧美日韩激情一区二区| 国产欧美日韩另类视频免费观看| 亚洲视频在线观看一区| 国产一区二三区好的| 精品视频在线免费观看| 国产精品高潮呻吟久久| 蜜桃视频一区二区三区| 在线观看国产日韩| 中文字幕一区二区三区不卡 | 亚洲色图欧美偷拍| 国产麻豆精品久久一二三| 91麻豆精品国产91久久久使用方法| 国产精品精品国产色婷婷| 国产乱码一区二区三区| 精品日韩成人av| 麻豆精品一区二区| 欧美一级xxx| 婷婷综合久久一区二区三区| av电影天堂一区二区在线 | 蜜臂av日日欢夜夜爽一区| 91福利精品视频| 中文字幕一区二区三区四区不卡| 国产精品系列在线播放| 久久亚洲免费视频| 国产一区二区三区免费播放 | 国产精品一区不卡| 精品国内片67194| 精品一区二区影视| 日韩精品综合一本久道在线视频| 日韩电影免费在线| 欧美不卡在线视频| 国产在线看一区| 久久精品在这里| 国产成人免费视频一区| 国产精品美女久久久久久| 成人免费视频播放| 一区二区在线观看av| 91久久精品一区二区| 一区二区三区精品视频在线| 色视频一区二区| 亚洲国产aⅴ天堂久久| 欧美日产在线观看| 日本va欧美va精品发布| 日韩欧美一二区| 国产精品456露脸| 国产精品高潮久久久久无| 日本道精品一区二区三区| 五月综合激情婷婷六月色窝| 日韩欧美国产综合一区| 盗摄精品av一区二区三区| 亚洲精品国产第一综合99久久| 欧美午夜一区二区| 极品少妇一区二区| 亚洲欧洲精品一区二区三区| 欧美日韩日日摸| 国产一区二区不卡老阿姨| 亚洲欧洲成人av每日更新| 欧美理论电影在线| 国产宾馆实践打屁股91| 亚洲福利视频导航| 久久久久国产精品人| 日本韩国一区二区三区| 另类小说色综合网站| 成人欧美一区二区三区小说| 欧美精品乱码久久久久久| 大陆成人av片| 裸体歌舞表演一区二区| 亚洲人一二三区| 2023国产精品| 在线电影欧美成精品| 国产成人在线免费| 青青草成人在线观看| 亚洲天堂a在线| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美曰成人黄网| 国产69精品久久777的优势| 亚洲福中文字幕伊人影院| 国产女人水真多18毛片18精品视频 | 色综合天天综合给合国产| 麻豆成人在线观看| 亚洲综合一区在线| 国产精品嫩草影院com| 日韩欧美精品在线| 欧美人伦禁忌dvd放荡欲情| 波多野结衣中文字幕一区二区三区| 日韩av一区二| 亚洲午夜在线视频| 亚洲人成在线播放网站岛国| 国产亚洲1区2区3区| 欧美tk丨vk视频| 91麻豆精品国产| 欧美日韩国产一级| 91成人在线免费观看| 91色porny蝌蚪| 顶级嫩模精品视频在线看| 久久精品久久精品| 日本午夜精品视频在线观看| 香蕉影视欧美成人| 亚洲第一久久影院| 亚洲一区二区三区在线播放| 中文字幕制服丝袜一区二区三区| 国产女人18毛片水真多成人如厕 | 26uuu亚洲综合色欧美| 欧美成人女星排名| 精品久久久久av影院 | 在线看国产一区二区| 91香蕉视频mp4| 99re66热这里只有精品3直播| 丁香五精品蜜臀久久久久99网站| 另类的小说在线视频另类成人小视频在线 | 欧美剧在线免费观看网站| 欧美中文字幕不卡| 欧美日韩国产在线观看| 欧美专区日韩专区| 欧美日韩色一区| 3d成人h动漫网站入口| 欧美一区二区三区性视频| 日韩一区二区三区免费看 | 亚洲在线观看免费| 亚洲一区二区三区中文字幕| 亚洲午夜久久久久| 婷婷夜色潮精品综合在线| 婷婷激情综合网| 久久99久久久久| 国产一二三精品| 波多野结衣在线aⅴ中文字幕不卡| 国产999精品久久久久久| 成人免费视频视频在线观看免费| 成人18精品视频| 91久久人澡人人添人人爽欧美| 欧美午夜精品久久久久久超碰 | 国产欧美精品一区aⅴ影院| 国产精品成人在线观看| 亚洲最新视频在线观看| 天天综合色天天| 国内偷窥港台综合视频在线播放| 大胆亚洲人体视频| 欧美日韩亚洲丝袜制服| 欧美一区二区大片| 中国色在线观看另类| 亚洲综合免费观看高清完整版 | 国产一区在线观看麻豆| eeuss国产一区二区三区| 欧美曰成人黄网| 日韩三级中文字幕| 国产精品久久毛片av大全日韩| 亚洲成人第一页| 国产福利精品导航| 欧美日韩国产系列| 国产欧美精品一区| 日韩av午夜在线观看| 不卡一二三区首页| 日韩精品资源二区在线| 国产精品理伦片| 另类人妖一区二区av| 91日韩精品一区| 日韩欧美在线影院| 亚洲一级二级三级| 国产精品一二三区| 91精品国产综合久久久蜜臀图片 | 91视频免费看| 欧美精品一区二区三区视频| 亚洲日本护士毛茸茸| 精品一区二区三区免费观看| 色综合久久88色综合天天免费| 精品国产一区二区三区av性色 | 亚洲免费观看在线观看| 国产一区二区三区久久久 | 欧美日本在线看| 亚洲四区在线观看| 成人妖精视频yjsp地址| 91精品国产综合久久精品性色| ●精品国产综合乱码久久久久| 黄色资源网久久资源365| 欧美二区乱c少妇| 亚洲黄一区二区三区| 成人av综合一区| 久久午夜羞羞影院免费观看| 亚洲线精品一区二区三区| av网站免费线看精品| 久久久久久夜精品精品免费| 日韩专区一卡二卡| 色成年激情久久综合| 中文字幕亚洲在| av影院午夜一区| 日本一区二区三区四区| 国内外精品视频| 久久五月婷婷丁香社区| 精品亚洲成a人| 日韩精品一区二区三区在线观看| 五月婷婷久久丁香| 欧美日韩在线直播| 亚洲综合色成人| 欧美日韩另类国产亚洲欧美一级| 夜夜夜精品看看| 欧美色精品在线视频| 亚洲高清在线视频|