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

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

?? boxcount.c

?? 時間序列工具
?? C
字號:
/* *   This file is part of TISEAN * *   Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * *   TISEAN is free software; you can redistribute it and/or modify *   it under the terms of the GNU General Public License as published by *   the Free Software Foundation; either version 2 of the License, or *   (at your option) any later version. * *   TISEAN is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU General Public License for more details. * *   You should have received a copy of the GNU General Public License *   along with TISEAN; if not, write to the Free Software *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//* Author: Rainer Hegger Last modified: Feb 22, 2006 *//* Changes:    02/22/06: Remove this strange else in start_box that              did not compile anyways*/#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <limits.h>#include "routines/tsa.h"#define WID_STR "Estimates the Renyi entropy of Qth order\n\t\using a partition instead of a covering."typedef struct {  double *hist;  void *ptr;} hliste;unsigned long LENGTH=ULONG_MAX,exclude=0;unsigned int maxembed=10,dimension=1,DELAY=1,EPSCOUNT=20;unsigned int verbosity=0xff;double Q=2.0,EPSMIN=1.e-3,EPSMAX=1.0;char dimset=0,epsminset=0,epsmaxset=0;char *outfile=NULL;char *column=NULL;int epsi;unsigned long length;double EPSFAKTOR;unsigned int **which_dims;double *histo;double **series;void show_options(char *progname){  what_i_do(progname,WID_STR);  fprintf(stderr,"Usage: %s [Options]\n",progname);  fprintf(stderr,"Options:\n");  fprintf(stderr,"\t-l # of datapoints [Default: whole file]\n");  fprintf(stderr,"\t-x # of lines to ignore [Default: %lu]\n",exclude);  fprintf(stderr,"\t-M # of columns,maximal embedding dimension "	  "[Default: %u,%u]\n",dimension,maxembed);  fprintf(stderr,"\t-c columns to read  [Default: 1,...,#of compon.]\n");  fprintf(stderr,"\t-d delay [Default: %u]\n",DELAY);  fprintf(stderr,"\t-Q order of the Renyi entropy [Default: %.1f]\n",Q);  fprintf(stderr,"\t-r minimal epsilon [Default: (data interval)/1000]\n");  fprintf(stderr,"\t-R maximal epsilon [Default: data interval]\n");  fprintf(stderr,"\t-# # of epsilons to use [Default: %u]\n",EPSCOUNT);  fprintf(stderr,"\t-o output file name [Default: 'datafile'.box]\n");  fprintf(stderr,"\t-V verbosity level [Default: 1]\n\t\t"          "0='only panic messages'\n\t\t"          "1='+ input/output messages'\n");  fprintf(stderr,"\t-h show these options\n\n");  exit(0);}void scan_options(int n,char **in){  char *out;    if ((out=check_option(in,n,'l','u')) != NULL)    sscanf(out,"%lu",&LENGTH);  if ((out=check_option(in,n,'c','s')) != NULL)    column=out;  if ((out=check_option(in,n,'x','u')) != NULL)    sscanf(out,"%lu",&exclude);  if ((out=check_option(in,n,'M','2')) != NULL) {    sscanf(out,"%u,%u",&dimension,&maxembed);    dimset=1;  }  if ((out=check_option(in,n,'d','u')) != NULL)    sscanf(out,"%u",&DELAY);  if ((out=check_option(in,n,'Q','f')) != NULL)    sscanf(out,"%lf",&Q);  if ((out=check_option(in,n,'r','f')) != NULL) {    sscanf(out,"%lf",&EPSMIN);    epsminset=1;  }  if ((out=check_option(in,n,'R','f')) != NULL) {    sscanf(out,"%lf",&EPSMAX);    epsmaxset=1;  }  if ((out=check_option(in,n,'#','u')) != NULL)    sscanf(out,"%u",&EPSCOUNT);  if ((out=check_option(in,n,'V','u')) != NULL)    sscanf(out,"%u",&verbosity);  if ((out=check_option(in,n,'o','s')) != NULL)    outfile=out;}hliste *make_histo(void){  int i;  hliste *element;    check_alloc(element=(hliste*)malloc(sizeof(hliste)));  element->ptr=NULL;  check_alloc(element->hist=(double*)malloc(sizeof(double)*maxembed*dimension));  for (i=0;i<maxembed*dimension;i++)    element->hist[i]=0.0;    return element;}void next_dim(int wd,int n,unsigned int *first){  int i,which,d1,comp;  double epsinv,norm,p;  unsigned int **act;  int *found,hf;  comp=which_dims[wd][0];  d1=which_dims[wd][1]*DELAY;  epsinv=(double)epsi;  norm=(double)length;  check_alloc(act=(unsigned int**)malloc(epsi*sizeof(int*)));  check_alloc(found=(int*)malloc(epsi*sizeof(int)));    for (i=0;i<epsi;i++) {    found[i]=0;    act[i]=NULL;  }    for (i=0;i<n;i++) {    which=(int)(series[comp][first[i]+d1]*epsinv);    hf= ++found[which];    check_alloc(act[which]=		realloc((unsigned int*)act[which],hf*sizeof(unsigned int)));    act[which][hf-1]=first[i];  }    for (i=0;i<epsi;i++)    if (found[i]) {      p=(double)(found[i])/(norm);      if (Q == 1.0)	histo[wd] -= p*log(p);      else	histo[wd] += pow(p,Q);    }    if (wd<(maxembed*dimension-1))    for (i=0;i<epsi;i++)      if (found[i])	next_dim(wd+1,found[i],act[i]);    for (i=0;i<epsi;i++)    if (found[i])      free(act[i]);    free(act);  free(found);}void start_box(void){  int i,which;  double epsinv,norm,p;  unsigned int **act;  int *found,hf;  void next_dim();    epsinv=(double)epsi;  norm=(double)length;    check_alloc(act=(unsigned int**)malloc(epsi*sizeof(int*)));  check_alloc(found=(int*)malloc(epsi*sizeof(int)));    for (i=0;i<epsi;i++) {    found[i]=0;    act[i]=NULL;  }    for (i=0;i<length;i++) {    which=(int)(series[0][i]*epsinv);    hf= ++found[which];    check_alloc(act[which]=		realloc((unsigned int*)act[which],hf*sizeof(unsigned int)));    act[which][hf-1]=i;  }    for (i=0;i<epsi;i++)    if (found[i]) {      p=(double)(found[i])/(norm);      if (Q == 1.0)	histo[0] -= p*log(p);      else	histo[0] += pow(p,Q);    }    if (1<dimension*maxembed) {    for (i=0;i<epsi;i++) {      if (found[i])	next_dim(1,found[i],act[i]);    }  }  /*  else {    if (1<maxembed)      for (i=0;i<epsi;i++) {	if (found[i])	  next_dim(1,found[i],act[i]);      }  }  */  for (i=0;i<epsi;i++)    if (found[i])      free(act[i]);    free(act);  free(found);}int main(int argc,char **argv){  int i,j,k,count,epsi_old=0,epsi_test;  void *root;  hliste *histo_el;  double *deps,heps;  double min,interval,maxinterval;  char *infile=NULL,stdi=0;  FILE *fHq;  if (scan_help(argc,argv))    show_options(argv[0]);    scan_options(argc,argv);#ifndef OMIT_WHAT_I_DO  if (verbosity&VER_INPUT)    what_i_do(argv[0],WID_STR);#endif  infile=search_datafile(argc,argv,NULL,verbosity);  if (infile == NULL)    stdi=1;  if (outfile == NULL) {    if (!stdi) {      check_alloc(outfile=(char*)calloc(strlen(infile)+5,(size_t)1));      sprintf(outfile,"%s.box",infile);    }    else {      check_alloc(outfile=(char*)calloc((size_t)10,(size_t)1));      sprintf(outfile,"stdin.box");    }  }  test_outfile(outfile);  if (column == NULL)    series=(double**)get_multi_series(infile,&LENGTH,exclude,&dimension,"",				      dimset,verbosity);  else    series=(double**)get_multi_series(infile,&LENGTH,exclude,&dimension,				      column,dimset,verbosity);  maxinterval=0.0;  for (i=0;i<dimension;i++) {    rescale_data(series[i],LENGTH,&min,&interval);    if (interval > maxinterval)      maxinterval=interval;  }  if (epsminset)    EPSMIN /= maxinterval;  if (epsmaxset)    EPSMAX /= maxinterval;  for (i=0;i<dimension;i++) {    for (j=0;j<LENGTH;j++)      if (series[i][j] >= 1.0)	series[i][j] -= EPSMIN/2.0;  }  check_alloc(histo=(double*)malloc(sizeof(double)*maxembed*dimension));  check_alloc(deps=(double*)malloc(sizeof(double)*EPSCOUNT));  check_alloc(which_dims=(unsigned int**)malloc(sizeof(int*)*						maxembed*dimension));  for (i=0;i<maxembed*dimension;i++)    check_alloc(which_dims[i]=(unsigned int*)malloc(sizeof(int)*2));  for (i=0;i<maxembed;i++)    for (j=0;j<dimension;j++) {      which_dims[i*dimension+j][0]=j;      which_dims[i*dimension+j][1]=i;    }    histo_el=make_histo();  root=histo_el;    if (EPSCOUNT >1)    EPSFAKTOR=pow(EPSMAX/EPSMIN,1.0/(double)(EPSCOUNT-1));  else    EPSFAKTOR=1.0;  length=LENGTH-(maxembed-1)*DELAY;  heps=EPSMAX*EPSFAKTOR;    for (k=0;k<EPSCOUNT;k++) {    count++;    for (i=0;i<maxembed*dimension;i++)      histo[i]=0.0;    do {      heps /= EPSFAKTOR;      epsi_test=(int)(1./heps);    } while (epsi_test <= epsi_old);        epsi=epsi_test;    epsi_old=epsi;    deps[k]=heps;        start_box();    histo_el=root;    while (histo_el->ptr != NULL)      histo_el=histo_el->ptr;        for (i=0;i<maxembed*dimension;i++)      if (Q == 1.0)	histo_el->hist[i]=histo[i];      else	histo_el->hist[i]=log(histo[i])/(1.0-Q);        histo_el->ptr=make_histo();    histo_el=histo_el->ptr;    fHq=fopen(outfile,"w");    if (verbosity&VER_INPUT)      fprintf(stderr,"Opened %s for writing\n",outfile);    for (i=0;i<maxembed*dimension;i++) {      fprintf(fHq,"#component = %d embedding = %d\n",which_dims[i][0]+1,	      which_dims[i][1]+1);      histo_el=root;      for (j=0;j<=k;j++) {	if (i == 0)	  fprintf(fHq,"%e %e %e\n",deps[j]*maxinterval,		  histo_el->hist[i],histo_el->hist[i]);	else	  fprintf(fHq,"%e %e %e\n",deps[j]*maxinterval,		  histo_el->hist[i],histo_el->hist[i]-histo_el->hist[i-1]);	histo_el=histo_el->ptr;      }      fprintf(fHq,"\n");    }    fclose(fHq);  }  return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产一区二区三区香蕉| 日韩高清不卡一区二区| 国产精品久久夜| 亚洲另类在线视频| 蜜臀av性久久久久av蜜臀妖精| 国产在线播精品第三| av电影在线不卡| 欧美日韩久久久久久| 久久综合久久鬼色中文字| 亚洲人xxxx| 黑人巨大精品欧美一区| 91福利在线播放| 精品国产免费一区二区三区四区| 亚洲色图欧美在线| 国产成人99久久亚洲综合精品| 欧美日韩亚洲综合一区| 亚洲欧美一区二区视频| 国内精品嫩模私拍在线| 欧美国产精品v| 日韩一区精品视频| 色婷婷激情综合| 中文子幕无线码一区tr| 91日韩在线专区| 国产精品久久看| 欧美系列亚洲系列| 亚洲美女一区二区三区| 欧美一区二区成人| 国产91精品一区二区| 亚洲一区二区三区精品在线| 97精品超碰一区二区三区| 国产精品嫩草99a| 国产99久久久国产精品潘金| 亚洲欧美另类小说| 精品成人佐山爱一区二区| 成人一区二区三区在线观看 | 在线视频观看一区| 国产精品理伦片| 91精品国产综合久久精品麻豆| 天堂影院一区二区| 久久久www成人免费无遮挡大片| 国产美女娇喘av呻吟久久| 亚洲欧美日韩中文播放| 久久亚洲精华国产精华液| 91国产精品成人| 国产成人福利片| 国产精品亲子伦对白| 7777精品伊人久久久大香线蕉经典版下载| 国产v综合v亚洲欧| 久久国产剧场电影| 久久久国产一区二区三区四区小说 | 欧美高清精品3d| 青青草国产成人99久久| 欧美成人一级视频| 国产久卡久卡久卡久卡视频精品| 久久久激情视频| 欧美一区国产二区| 欧美色综合影院| 色婷婷久久久久swag精品 | 久久99国产精品久久99 | 国产精品三级电影| 久久久久久久久久美女| 91精品国产91久久久久久一区二区| 欧美中文字幕一区二区三区亚洲| 成人激情小说网站| 午夜欧美2019年伦理| 91麻豆精品国产91久久久久 | 欧美性一区二区| 91在线porny国产在线看| 国产91在线|亚洲| 国产老妇另类xxxxx| 国产又粗又猛又爽又黄91精品| 蜜桃视频一区二区| 蜜桃av噜噜一区| 日韩精品欧美精品| 三级成人在线视频| 日韩电影一二三区| 日本午夜精品视频在线观看| 日韩av中文字幕一区二区三区| 图片区日韩欧美亚洲| 午夜久久久影院| 日韩vs国产vs欧美| 九九热在线视频观看这里只有精品| 青青草精品视频| 久久99精品久久久久久国产越南 | 欧美在线高清视频| 欧美女孩性生活视频| 欧美日韩成人综合天天影院| 9191成人精品久久| 日韩一区二区三区四区| 91美女在线看| 欧美性大战xxxxx久久久| 欧美午夜影院一区| 日韩欧美综合一区| 久久综合狠狠综合久久综合88 | 日本一区二区三区在线不卡| 欧美日韩小视频| 日韩免费在线观看| 欧美日韩视频在线一区二区| 在线播放日韩导航| 久久亚洲捆绑美女| 亚洲精品视频一区二区| 婷婷激情综合网| 国产精品66部| 色综合一区二区| 国产成人日日夜夜| 色综合天天综合色综合av | 亚洲成人你懂的| 国产精品成人在线观看| 亚洲国产精品尤物yw在线观看| 亚洲视频电影在线| 日本美女一区二区三区视频| 国产夫妻精品视频| 欧美日韩亚洲另类| 国产校园另类小说区| 久久亚洲精精品中文字幕早川悠里| 18涩涩午夜精品.www| 欧美日韩专区在线| 色视频一区二区| 3atv一区二区三区| 国产精品色哟哟| 婷婷国产v国产偷v亚洲高清| 国产精品69毛片高清亚洲| 欧美无人高清视频在线观看| 久久久精品日韩欧美| 亚洲成av人在线观看| 成人午夜av电影| 欧美一卡2卡三卡4卡5免费| 中文一区在线播放| 免费高清视频精品| 日本道精品一区二区三区| 26uuu欧美| 亚洲a一区二区| av一区二区三区四区| 2023国产精品视频| 久久97超碰色| 欧美色综合影院| 亚洲免费视频成人| 国产99久久久国产精品潘金 | 99久久99久久久精品齐齐| 337p亚洲精品色噜噜狠狠| 亚洲欧美激情小说另类| 国产一区二区三区观看| 欧洲亚洲国产日韩| 欧美国产精品久久| 国产最新精品精品你懂的| 欧美三级蜜桃2在线观看| 国产精品伦理一区二区| 国产一区免费电影| 91麻豆精品国产无毒不卡在线观看| 日韩美女啊v在线免费观看| 国产精品一区专区| 日韩欧美中文一区| 日韩精品三区四区| 欧美区在线观看| 午夜精品福利在线| 欧美亚洲国产一卡| 亚洲一区二区五区| 色婷婷综合久久久中文字幕| 亚洲欧洲国产日韩| 成人av午夜电影| 国产精品免费av| 成人高清在线视频| 国产精品无遮挡| 成人av影院在线| 亚洲欧美在线高清| 91激情在线视频| 亚洲一区二区三区四区五区中文| 91啪亚洲精品| 亚洲码国产岛国毛片在线| 色综合久久中文字幕| 亚洲免费在线观看| 欧美综合久久久| 视频一区中文字幕国产| 在线电影国产精品| 精品影院一区二区久久久| 亚洲精品一区二区三区四区高清| 久久成人18免费观看| 2023国产精品自拍| av亚洲精华国产精华精| 亚洲日本一区二区| 欧美性生活一区| 免费成人在线观看视频| 精品卡一卡二卡三卡四在线| 国产福利不卡视频| 亚洲久草在线视频| 欧美区视频在线观看| 国产在线精品一区二区夜色 | 欧美电视剧免费观看| 国产伦精品一区二区三区免费| 国产午夜精品一区二区三区嫩草| 成人综合婷婷国产精品久久免费| 综合av第一页| 欧美日韩国产首页在线观看| 久久精品国产精品亚洲红杏| 国产日韩成人精品| 欧美主播一区二区三区美女| 乱一区二区av| 1000精品久久久久久久久| 欧美色视频一区| 韩国欧美国产1区|