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

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

?? cluster1.c

?? 聚類算法全集以及內附數據集
?? C
?? 第 1 頁 / 共 4 頁
字號:
  &&   (clset->cls[0].var != 1.0)) {    fputs(indent,        file); /* if nonstandard uniform radius */    fputs("radius   = ", file); /* write a radius indicator */    fprintf(file, "%g;\n", sqrt(clset->cls[0].var));  }                             /* print the radius */  /* --- print the normalization mode --- */  if ((clset->mode  != CLS_NONE)/* if not default parameters */  ||  (clset->noise != 0)       /* for the normalization mode */  ||  (clset->nrmps[0] != 1) || (clset->nrmps[1] != 0)) {    fputs(indent,        file); /* write the indentation and */    fputs("normmode = ", file); /* the normalization mode indicator */    fputs(nrmnames[clset->mode], file);    if ((clset->nrmps[0] != 1)  /* if not standard parameters, */    ||  (clset->nrmps[1] != 0)) /* print normalization parameters */      fprintf(file, "(%g,%g)", clset->nrmps[0], clset->nrmps[1]);    if (clset->noise != 0)      /* print noise cluster parameter */      fprintf(file, ", %g", clset->noise);    fputs(";\n", file);         /* terminate the normalization mode */  }                             /* (optional information) */  /* --- print cluster parameters --- */  fputs(indent,         file);  /* write the indentation and */  fputs("params   = {", file);  /* start the parameter section */  p = clset->cls;               /* traverse the clusters */  for (i = 0; i < clset->clscnt; p++, i++) {    if (i > 0)                  /* start a new output line */      fprintf(file, ",\n%s            ", indent);    fputs("{ [", file);         /* write the cluster center */    for (n = 0; n < clset->incnt-1; n++)      fprintf(file, "% g, ", p->ctr[n]);    fprintf(file, "% g]", p->ctr[n]);    if      (clset->type & CLS_COVARS) { /* if covariances are used */      for (n = 0; n < clset->incnt; n++){/* traverse the matrix rows */        fprintf(file, ",\n%s            [", indent);        for (k = 0; k < n; k++) /* traverse the matrix row */          fprintf(file, "% g, ", mat_get(p->cov, k, n));        fprintf(file, "% g]", mat_get(p->cov, n, n));      } }                       /* print the (normalized) covariances */    else if (clset->type & CLS_VARS) {   /* if variances are used */      fprintf(file, ",\n%s            ", indent);      fprintf(file, "  [% g", mat_get(p->cov, 0, 0));      for (n = 1; n < clset->incnt; n++)        fprintf(file, ", % g", mat_get(p->cov, n, n));      fputc(']', file); }       /* print a list of variances */    else if (clset->type & CLS_SIZE) {   /* if cluster size is used */      fprintf(file, ", [%g]", p->var);    }                           /* print the isotropic variance */    if (clset->type & CLS_WEIGHT)        /* if cluster weight is used */      fprintf(file, ", %g", p->wgt);     /* print the cluster weight */    fputs(" }", file);          /* terminate the cluster description */  }  fputs("};\n", file);          /* terminate the parameter section */  #ifdef CLS_EXTFN              /* if to compile extended functions */  if (clset->attset && !(mode & CLS_RBFNET))    fputs("};\n", file);        /* terminate the description */  #endif  return ferror(file) ? -1 : 0; /* return the write status */}  /* cls_desc() *//*----------------------------------------------------------------------  Cluster Set Parse Functions----------------------------------------------------------------------*/#ifdef CLS_PARSEstatic int _scales (CLSET *clset, SCAN *scan){                               /* --- get the input scalings */  assert(clset && scan);        /* check the function arguments */  if (clset->nst) return 0;     /* check whether scalings exist */  if ((sc_token(scan) != T_ID)  /* check whether 'scales' follows */  ||  (strcmp(sc_value(scan), "scales") != 0))    return 0;                   /* if not, abort the function */  clset->nst = nst_parse(scan, clset->incnt);  if (!clset->nst) return 1;    /* parse the scaling parameters */  clset->incnt = nst_dim(clset->nst);  return 0;                     /* get the number of dimensions */}  /* _scales() *//*--------------------------------------------------------------------*/static int _function (CLSET *clset, SCAN *scan){                               /* --- parse the function description */  const char *s;                /* buffer for token value */  double     p;                 /* buffer for a parameter */  if ((sc_token(scan) != T_ID)  /* check for "function" */  ||  (strcmp(sc_value(scan), "function") != 0))    return 0;                   /* if there is none, abort */  GET_TOK();                    /* consume the "function" keyword */  GET_CHR('=');                 /* consume '=' */  if (sc_token(scan) != T_ID) ERR_STR("cauchy");  s = sc_value(scan);           /* check for a function name */  if      (strcmp(s, "cauchy") == 0) clset->radfn = rf_cauchy;  else if (strcmp(s, "gauss")  == 0) clset->radfn = rf_gauss;  else ERR_STR("cauchy");       /* decode the function name */  GET_TOK();                    /* and consume it */  GET_CHR('(');                 /* consume '(' */  if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);  p = strtod(sc_value(scan), NULL);  if (p <= 0) ERROR(E_ILLNUM);  /* check for a number and */  clset->rfnps[0] = p;          /* get the first parameter, */  GET_TOK();                    /* i.e., the distance exponent */  GET_CHR(',');                 /* consume the separating ',' */  if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);  p = strtod(sc_value(scan), NULL);  if (p < 0) ERROR(E_ILLNUM);   /* check for a number and */  clset->rfnps[1] = p;          /* get the second parameter, */  GET_TOK();                    /* i.e., the scaling factor */  GET_CHR(')');                 /* consume the closing ')' */  if (sc_token(scan) == ',') {  /* if a comma follows */    GET_TOK();                  /* consume ',' */    if ((sc_token(scan) != T_ID)    ||  (strcmp(sc_value(scan), "normalized") != 0))      ERR_STR("normalized");    /* check for a normalization flag */    clset->type |= CLS_NORM;    /* set the normalization flag */    GET_TOK();                  /* in the cluster type and */  }                             /* consume the "normalized" keyword */  GET_CHR(';');                 /* consume the closing ';' */  return 0;                     /* return 'ok' */}  /* _function() *//*--------------------------------------------------------------------*/static int _radius (CLSET *clset, SCAN *scan){                               /* --- parse the uniform radius */  if ((sc_token(scan) != T_ID)  /* check for a radius specification */  ||  (strcmp(sc_value(scan), "radius") != 0))    return 0;                   /* if there is none, abort */  GET_TOK();                    /* consume the "radius" keyword */  GET_CHR('=');                 /* consume '=' */  if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);  clset->msd[1] = strtod(sc_value(scan), NULL);  if (clset->msd[1] <= 0) ERROR(E_ILLNUM);  GET_TOK();                    /* get and consume the eadius */  GET_CHR(';');                 /* consume the closing ';' */  return 0;                     /* return 'ok' */}  /* radius() *//*--------------------------------------------------------------------*/static int _norm (CLSET *clset, SCAN *scan){                               /* --- parse the normalization mode */  const char *s;                /* buffer for token value */  double     n;                 /* buffer for parameter */  if ((sc_token(scan) != T_ID)  /* check for "normmode" */  ||  (strcmp(sc_value(scan), "normmode") != 0)) {    clset->norm = CLS_NONE; return 0; }  GET_TOK();                    /* consume the "normmode" keyword */  GET_CHR('=');                 /* consume '=' */  if (sc_token(scan) != T_ID) ERR_STR("sum1");  s = sc_value(scan);           /* check for a norm. mode name */  if      (strcmp(s, nrmnames[CLS_NONE]) == 0) clset->mode = CLS_NONE;  else if (strcmp(s, nrmnames[CLS_SUM1]) == 0) clset->mode = CLS_SUM1;  else if (strcmp(s, nrmnames[CLS_MAX1]) == 0) clset->mode = CLS_MAX1;  else if (strcmp(s, nrmnames[CLS_HARD]) == 0) clset->mode = CLS_HARD;  else ERR_STR(nrmnames[CLS_SUM1]);  GET_TOK();                    /* decode the normalization mode */  if (sc_token(scan) == '(') {  /* if a paranthesis follows, */    GET_TOK();                  /* consume the '(' */    if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);    n = strtod(sc_value(scan), NULL);    if (n <= 0)                  ERROR(E_ILLNUM);    clset->nrmps[0] = n;        /* get the 1st normalization param. */    GET_TOK();                  /* and consume the number */    GET_CHR(',');               /* consume the separating comma */    if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);    n = strtod(sc_value(scan), NULL);    if (n <  0)                  ERROR(E_ILLNUM);    clset->nrmps[1] = n;        /* get the 2nd normalization param. */    GET_TOK();                  /* and consume the number */    GET_CHR(')');               /* consume the separating comma */  }  if (sc_token(scan) == ',') {  /* if a comma follows, */    GET_TOK();                  /* consume the ',' */    if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);    n = strtod(sc_value(scan), NULL);    clset->msd[0] = (n >= 0) ? n : clset->radfn(n*n, clset->rfnps);    clset->noise  = n;          /* get the noise cluster parameter, */    GET_TOK();                  /* compute the membership degree, */  }                             /* and consume the number */  GET_CHR(';');                 /* consume the closing ';' */  return 0;                     /* return 'ok' */}  /* _norm() *//*--------------------------------------------------------------------*/static int _params (CLSET *clset, SCAN *scan){                               /* --- parse a set of clusters */  int     i, k;                 /* loop variables */  int     err   = 0;            /* error status */  int     vsz   = 0;            /* size of cluster vector */  int     incnt = 0;            /* dimension of (input) data space */  CLUSTER *c;                   /* to access the clusters */  double  t, *v = NULL;         /* buffers (for reallocation) */  if ((sc_token(scan) != T_ID)  /* check for cluster parameters */  ||  (strcmp(sc_value(scan), "params") != 0))    ERR_STR("params");          /* if there are none, abort */  GET_TOK();                    /* consume the "params" keyword */  GET_CHR('=');                 /* consume '=' */  GET_CHR('{');                 /* consume '{' */  while (1) {                   /* cluster read loop */    GET_CHR('{');               /* consume '{' */    if (clset->clscnt >= vsz) { /* if the cluster vector is full */      vsz += (vsz > BLKSIZE) ? vsz >> 1 : BLKSIZE;      c = (CLUSTER*)realloc(clset->cls, vsz *sizeof(CLUSTER));      if (!c) ERROR(E_NOMEM);   /* allocate a new cluster vector */      clset->cls = c;           /* and set it */    }    GET_CHR('[');               /* consume opening '[' */    if (clset->incnt <= 0) {    /* if the dimension is yet unknown */      clset->incnt = 0;         /* initialize the dimension */      while (1) {               /* coordinate read loop */        if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);        if (clset->incnt >= incnt) { /* if the coord. vector is full */          incnt += (incnt > BLKSIZE) ? incnt >> 1 : BLKSIZE;          v = (double*)realloc(clset->vec, incnt *sizeof(double));          if (!v) ERROR(E_NOMEM);          clset->vec = v;       /* enlarge the coordinate vector */        }                       /* and set the new one */        clset->vec[clset->incnt++] = strtod(sc_value(scan), NULL);        GET_TOK();              /* get and consume the coordinate */        if (sc_token(scan) != ',') break;        GET_TOK();              /* if at end of coord. list, abort */      }                         /* the loop, otherwise consume ',' */    }    c = clset->cls +clset->clscnt++;    if (_cluster(c, clset->incnt) != 0)      ERROR(E_NOMEM);           /* initialize the cluster prototype */    mat_init(c->cov, MAT_UNIT, NULL);    mat_init(c->inv, MAT_UNIT, NULL);    mat_init(c->smp, MAT_ZERO, NULL);    if (incnt > 0) {            /* if the dimension was unknown */      vec_copy(c->ctr, clset->vec, clset->incnt);      incnt = 0; }              /* copy the cluster center */    else {                      /* if the dimension was known */      for (i = 0; i < clset->incnt; i++) {        if (i > 0) { GET_CHR(','); }  /* consume ',' */        if (sc_token(scan) != T_NUM) ERROR(E_NUMEXP);        c->ctr[i] = strtod(sc_value(scan), NULL);        GET_TOK();              /* traverse the dimensions and */      }                         /* get and consume the coordinates */    }                           /* of the center vector */    GET_CHR(']');               /* consume closing ']' */    i = 0;                      /* init. the parameter counter */    while (clset->clscnt <= 1){ /* if the cluster type is yet unknown */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品在线一区二区| 亚洲国产精品久久不卡毛片 | 欧美色涩在线第一页| 视频一区中文字幕国产| 综合欧美一区二区三区| 久久精品一区二区| 精品国产一区二区三区久久影院| 成人app网站| 豆国产96在线|亚洲| 国产精品996| 成人免费视频免费观看| 不卡视频一二三| 日本韩国欧美国产| 成人一区二区视频| 99精品视频中文字幕| 91视频一区二区| 欧美婷婷六月丁香综合色| 在线观看日韩av先锋影音电影院| 欧美中文字幕一区| 欧美老年两性高潮| 制服视频三区第一页精品| 日韩精品一区二区三区在线| 精品免费视频.| 国产精品国产三级国产专播品爱网| 国产欧美一区二区三区在线看蜜臀 | 中文字幕一区二区不卡| 亚洲狼人国产精品| 日本不卡高清视频| 国产成人亚洲综合a∨猫咪| 成人动漫一区二区| 欧美午夜精品电影| 欧美一区二区视频在线观看2020| 日韩欧美一区二区不卡| 中文字幕av免费专区久久| 国产欧美一区二区精品性色 | 亚洲专区一二三| 香蕉影视欧美成人| 国产精品乡下勾搭老头1| av在线播放一区二区三区| 欧美午夜电影网| 日韩欧美国产综合| 国产精品美女久久久久久| 亚洲综合在线五月| 国产成人精品亚洲日本在线桃色| 91麻豆精品国产91久久久使用方法 | 日本sm残虐另类| 91热门视频在线观看| 欧美一区二区三区婷婷月色| 国产精品视频看| 精品在线视频一区| 欧美无乱码久久久免费午夜一区 | 久久九九影视网| 亚洲在线视频网站| 成人一区在线观看| 日韩一级二级三级| 亚洲图片欧美一区| av电影在线观看一区| 久久尤物电影视频在线观看| 琪琪久久久久日韩精品| 欧美日韩国产高清一区二区| 亚洲人成亚洲人成在线观看图片| 国产成a人亚洲| 久久久精品综合| 免费高清成人在线| 欧美色图天堂网| 久久综合久久综合久久| 五月婷婷久久丁香| 欧美性受xxxx黑人xyx性爽| 国产欧美一区二区精品久导航| 日本亚洲电影天堂| 欧美老年两性高潮| 一区二区三国产精华液| 91亚洲国产成人精品一区二区三| 国产亚洲欧洲一区高清在线观看| 久久成人免费电影| 日韩欧美二区三区| 日本午夜精品视频在线观看| 在线观看91av| 免费看黄色91| 日韩欧美黄色影院| 亚洲国产乱码最新视频| 色狠狠桃花综合| 亚洲与欧洲av电影| 欧美巨大另类极品videosbest| 亚洲午夜日本在线观看| 欧美亚洲一区三区| 午夜婷婷国产麻豆精品| 欧美另类z0zxhd电影| 日韩国产一区二| 2019国产精品| 91麻豆高清视频| 日日嗨av一区二区三区四区| 欧美日韩激情在线| 免费在线欧美视频| 日韩一区二区在线播放| 激情六月婷婷综合| 精品国免费一区二区三区| 免费不卡在线视频| 国产校园另类小说区| 波多野结衣在线一区| 亚洲欧美国产三级| 91黄色激情网站| 亚洲午夜一二三区视频| 欧洲一区在线电影| 免费观看久久久4p| 国产精品伦一区二区三级视频| av资源站一区| 艳妇臀荡乳欲伦亚洲一区| 欧美精品在线一区二区三区| 国产精品一区二区91| 一区二区三区四区在线免费观看| 制服视频三区第一页精品| 成人免费观看av| 五月天激情综合| 国产精品三级视频| 欧美日韩视频在线一区二区| 韩国av一区二区三区在线观看| 日韩欧美国产午夜精品| 蜜桃久久av一区| 亚洲欧美国产三级| 日韩免费一区二区三区在线播放| 成人黄页毛片网站| 午夜伊人狠狠久久| 国产精品国产a| 日韩视频免费观看高清完整版在线观看 | 国产亚洲一二三区| 99精品视频在线观看| 精品亚洲aⅴ乱码一区二区三区| 国产精品久久国产精麻豆99网站| 在线视频你懂得一区| 极品美女销魂一区二区三区| 亚洲综合色区另类av| 中文字幕av一区 二区| 欧美剧情片在线观看| 97久久精品人人爽人人爽蜜臀| 另类的小说在线视频另类成人小视频在线 | 欧美精品自拍偷拍| 成人app软件下载大全免费| 青青草视频一区| 亚洲一区二区三区视频在线| 国产精品全国免费观看高清| 日韩三级精品电影久久久 | 91麻豆国产香蕉久久精品| 精品一区二区免费| 图片区日韩欧美亚洲| 欧美精品一区二区久久久| 91精品欧美久久久久久动漫| 欧美日韩精品欧美日韩精品| 99在线热播精品免费| 国产成人啪免费观看软件 | 国产欧美一区二区在线观看| 欧美一区二区成人6969| 欧美日韩中文字幕一区二区| 成人av在线资源| 国产不卡在线视频| 国产传媒欧美日韩成人| 国产美女主播视频一区| 久久99热这里只有精品| 午夜精品成人在线视频| 日韩国产一区二| 国产在线不卡一卡二卡三卡四卡| 国产麻豆精品一区二区| 国产成人综合亚洲网站| 波多野结衣91| 欧美色涩在线第一页| 欧美日韩国产123区| 日韩一区二区在线播放| 久久综合狠狠综合久久综合88| 久久精品人人做人人综合 | 七七婷婷婷婷精品国产| 美女一区二区三区| 国产呦精品一区二区三区网站| 国产乱国产乱300精品| 成人自拍视频在线观看| 91精品福利在线| 欧美成人精品3d动漫h| 国产欧美一区视频| 亚洲在线成人精品| 久久精品国产成人一区二区三区| 国产精品一二三| 在线观看国产精品网站| 欧美videofree性高清杂交| 日本一区二区视频在线| 亚洲一区二区三区免费视频| 极品少妇xxxx精品少妇| 99久久99久久精品国产片果冻| 欧美人妖巨大在线| 国产精品萝li| 久色婷婷小香蕉久久| 91麻豆免费在线观看| 精品国产亚洲在线| 一区二区三区欧美视频| 国产一区999| 91精品国产91综合久久蜜臀| 国产精品久久精品日日| 麻豆精品一区二区av白丝在线 | 亚洲柠檬福利资源导航| 亚洲第一在线综合网站| 国产a视频精品免费观看| 日韩小视频在线观看专区|