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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mp_maxima.c

?? LastWave
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
  MAXIMADICT maximaDict = (MAXIMADICT)(subDict->dataContainer);  unsigned short i;  BOOK   book;  unsigned long n;  MOLECULE maxMolecule;  MOLECULE molecule;  //ATOM   atom;  // Checking arguments  if(subDict->flagUpToDate==NO) Errorf("GetMaxMaximaDictSubDict : subDict is out of date!");  if(searchRange) Errorf("GetMaxMaximaDictSubDict : searchRange is non NULL");  if(pMaxValue) Errorf("GetMaxMaximaDictSubDict : pMaxValue is non NULL");  if(GetTypeValue(result)!=moleculeType) Errorf("GetMaxMaximaDictSubDict : result is not a &mol");    // Looks for the maximum over the maximaDict  maxMolecule = NULL;  // If the search range was empty we return NO  for(i = 0; i < maximaDict->size; i++) {    book = maximaDict->books[i];    for(n = 0; n < book->size; n++) {      molecule = GetBookMolecule(book,n);      //atom = GetMoleculeAtom(molecule,0);      // TODO : Skip molecules which first atom is not in the search range      //if(!INRANGE(windowSizeMin,atom->windowSize,windowSizeMax)) continue;      //if(!INRANGE(timeIdMin,atom->timeId,timeIdMax)) continue;      //if(!INRANGE(freqIdMin,atom->freqId,freqIdMax)) continue;      // Case where we encounter the first atom have       // Case where we encounter a better molecule      if(maxMolecule==NULL || molecule->coeff2 > maxMolecule->coeff2) {	maxMolecule = molecule;	continue;      }    }  }  if(maxMolecule==NULL) return(NO);  // DEBUG : TODO : remove when this can no longer occur!  if(isnan(maxMolecule->coeff2) || maxMolecule->coeff2 <= 0.0)  Errorf("GetMaxMaximaDictSubDict : maxMolecule coeff2=%g!",maxMolecule->coeff2);  // Fill the result  CopyMolecule(maxMolecule,(MOLECULE)result);  // Memorizes the maxMolecule  maximaDict->maxMolecule = maxMolecule;  AddRefValue(maxMolecule);  return(YES);}/******************************************************//* * 	UPDATING THE MAXIMA MOLECULES *//******************************************************//* * Function to monitor the update of an atom by itself */static int CompareAtoms(ATOM atomReal,ATOM atomComplex){  if(atomReal->windowSize==atomComplex->windowSize &&     (int) atomReal->timeId == (int) atomComplex->timeId &&     (int) atomReal->freqId == (int) atomComplex->freqId)    return(YES);  else    return(NO);}/* * Updating an atom, given a chosen atom.  */extern void RCAtomInnerProduct(const ATOM atomR,const ATOM atomC,char flagForceNumeric,LWFLOAT *pReal,LWFLOAT *pImag);void UpdateMaximaAtom(ATOM atom,ATOM optAtom){  LWFLOAT re,im;    /* Checkings */  CheckAtomReal(atom);  CheckAtomReal(optAtom);    /*   * Inner-product between the two atoms   * The updated one is considered complex   * The other is real and normalized         */  RCAtomInnerProduct(optAtom,atom,NO,&re,&im);    /* Case of atom ORTHOGONAL to atom : no update is needed */  if (re == 0 && im == 0) {    CastAtomReal(atom);    return;  }    /* Case when we need to update */    /* Update atom complex inner-product */  atom->coeffR -= sqrt(optAtom->coeff2)*re;  atom->coeffI -= sqrt(optAtom->coeff2)*im;    /* Keeping the extreme frequencies REAL */  if(atom->freqId == 0 || atom->freqId == GABOR_NYQUIST_FREQID)    atom->coeffI = 0.0;    /*   * Update atom phase,coeff2,...    */  CastAtomReal(atom);    /* WHEN WE UPDATE AN ATOM BY ITSELF, IT SHOULD BE ALWAYS DELETED */  if(CompareAtoms(optAtom,atom)) {    atom->coeffR	= atom->coeffI 	= 0.0;    atom->coeff2	= 0.0;  }}/* * Updating a molecule given a chosen optimized molecule to remove */void UpdateMaximaMolecule(MOLECULE molecule,MOLECULE optMolecule){  ATOM atom,optAtom;  unsigned short kUpdate,k;  unsigned char channel;  CheckMoleculeNotEmpty(molecule);  CheckMoleculeNotEmpty(optMolecule);  if(molecule->nChannels!=optMolecule->nChannels)    Errorf("UpdateMaximaMolecule : bad nChannels correspondance");  molecule->coeff2 = 0.0;    /* Loop on the atoms to update */  for(channel = 0; channel < molecule->nChannels; channel ++) {    for(kUpdate = 0; kUpdate < molecule->dim; kUpdate++) {      atom = GetMoleculeAtom(molecule,channel,kUpdate);      /* Loop on the chosen atoms */      for(k = 0; k < optMolecule->dim; k++) {	optAtom	 = GetMoleculeAtom(optMolecule,channel,k);	/* Updating the atoms inner-product,phase and coeff2 */	UpdateMaximaAtom(atom,optAtom);	/* Updating accordingly the molecule coeff2 */	molecule->coeff2 += atom->coeff2;      }    }  }}void UpdateMaximaDictSubDict(SUBDICT subDict){  MAXIMADICT maximaDict = (MAXIMADICT)(subDict->dataContainer);  unsigned short i;  DICT dict = subDict->dict;  BOOK book;  unsigned long n;  MOLECULE molecule;  // If already up to date, do nothing  if(subDict->flagUpToDate) return;  // Some checking  if(GetTypeValue(maximaDict)!=maximaDictType)    Errorf("UpdateMaximaDictSubDict (Weired) : data is not maximaDict!");  // If there is a removedMolecule (which may have been optimized) we have to update   // the books of local maximas well as the maxMolecule.  if(dict->removedMolecule) {    // DEBUG    //    Printf("%d",maximaDict->nMaxima);    for(i = 0; i < maximaDict->size; i++) {      book = maximaDict->books[i];      // The increase of 'n' is only done when the molecule is not deleted      for(n = 0; n < book->size; ) {	molecule = GetBookMolecule(book,n);	// Case where this is the molecule selected through GetMax (before optimizations):	// it has to be deleted.	if(molecule == maximaDict->maxMolecule) {	  DeleteMoleculeFromBook(book,n);	  maximaDict->maxMolecule = DeleteMolecule(maximaDict->maxMolecule);	  maximaDict->nMaxima--;	  // Do not increase 'n'	  continue;	}	UpdateMaximaMolecule(molecule,dict->removedMolecule);	// Case when we should we delete the current molecule : don't increase 'n'	if (molecule->coeff2 < maximaDict->threshold) {	  DeleteMoleculeFromBook(book,n);	  maximaDict->nMaxima--;	  continue;	}	n++;      }    }    // DEBUG    //    Printf("->%d\n",maximaDict->nMaxima);  }  // If the maximaDict is empty, we have to (re)initialize  if(maximaDict->nMaxima==0) {    // First, update the necessary sub-dictionaries    for(i = 0; i < maximaDict->size; i++) {      // Display a clock for waiting      switch(i%4) {//      case 0 : Printf("\\"); Flush(); break;//      case 1 : Printf("|"); Flush(); break;//      case 2 : Printf("/"); Flush(); break;//      case 3 : Printf("-"); Flush(); break;      }      UpdateSubDict(maximaDict->subDicts[i]);//      Printf("\b");    }    // Then, compute the local maxima    PrivateInitMaximaDict(maximaDict);    // DEBUG    //    Printf("Init %d\n",maximaDict->nMaxima);    // Now all sub-dictionaries are up to date    dict->updateTimeIdMin = dict->signalSize;    dict->updateTimeIdMax = 0;  }  subDict->flagUpToDate = YES;  // DEBUG :  if(maximaDict->maxMolecule) Errorf("UpdateMaximaDictSubDict : maxMolecule not deleted!");}SubDictMethods MaximaDictMethods = {  &GetMaxMaximaDictSubDict,  &UpdateMaximaDictSubDict};/* * The maximaDict fields */static char *maxDictBookDoc          = "{} {Gets a &listv containing all the &book of local maxima of a &maximadict.}";static char *maxDictThresholdDoc     = "{} {Gets the threshold of a &maximadict.}";static char *maxDictNMaximaDoc       = "{} {Gets the total number of maxima of a &maximadict.}";void *GetMaximaDictFieldsV(MAXIMADICT maximaDict,void **arg){  char *field = ARG_G_GetField(arg);  LISTV lv;  BOOK book;  unsigned short i;  /* Documentation */  if (maximaDict == NULL) {    if(!strcmp(field,"book"))   return(maxDictBookDoc);    if(!strcmp(field,"thresh")) return(maxDictThresholdDoc);    if(!strcmp(field,"nmax"))   return(maxDictNMaximaDoc);  }    if(!strcmp(field,"book")) {    lv = TNewListv();    for(i = 0; i < maximaDict->size;i++) {      book=(BOOK)(maximaDict->books[i]);      AppendValue2Listv(lv,(VALUE)book);    }    return(GetValueField(lv,arg));  }  if(!strcmp(field,"thresh")) {    return(GetFloatField(maximaDict->threshold,arg));  }  if(!strcmp(field,"nmax")) {    return(GetFloatField(maximaDict->nMaxima,arg));  }}struct field fieldsMaximaDict[] = {  "book", GetMaximaDictFieldsV, NULL, NULL, NULL,  "thresh", GetMaximaDictFieldsV, NULL, NULL, NULL,  "nmax", GetMaximaDictFieldsV, NULL, NULL, NULL,  NULL, NULL, NULL, NULL, NULL};/* * The type structure for MAXIMADICT */TypeStruct tsMaximaDict = {  "{{{&maximadict} {This type is the basic type for local maxima of time-frequency dictionaries for Matching Pursuit decompositions.}}}",  /* Documentation */  &maximaDictType,       /* The basic (unique) type name */  NULL,     /* The GetType function */                           DeleteMaximaDict,     /* The Delete function */  NewMaximaDict,     /* The New function */    NULL,       /* The copy function */  ClearMaximaDict,       /* The clear function */    ToStrMaximaDict,       /* String conversion */  ShortPrintMaximaDict,   /* The Print function : print the object when 'print' is called */  PrintInfoMaximaDict,   /* The PrintInfo function : called by 'info' */  NULL,              /* The NumExtract function : used to deal with syntax like 10a */     fieldsMaximaDict,      /* The list of fields */};/* EOF */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本一区二区| 国产精品系列在线播放| 精品一区二区在线播放| 91视频国产观看| 欧美一级艳片视频免费观看| 国产精品乱人伦一区二区| 日韩成人一区二区| 在线免费观看日本欧美| 中文字幕av资源一区| 蜜桃视频在线观看一区二区| 91国产免费看| 亚洲色图都市小说| 国产成人福利片| 日韩精品一区在线| 日韩国产精品久久久久久亚洲| 99re成人精品视频| 国产精品亲子伦对白| 精品一区中文字幕| 日韩一区二区精品| 日韩中文字幕不卡| 6080国产精品一区二区| 偷拍一区二区三区四区| 色婷婷综合久久久久中文 | 成人午夜视频网站| 精品国产91九色蝌蚪| 日韩激情中文字幕| 91精品欧美久久久久久动漫| 亚洲影视在线播放| 欧美视频中文一区二区三区在线观看| 日本一区二区久久| 成人h动漫精品一区二| 国产色产综合色产在线视频| 国产毛片精品视频| 久久精品欧美一区二区三区不卡| 老司机免费视频一区二区| 日韩三级免费观看| 狠狠色丁香久久婷婷综| 久久久久97国产精华液好用吗| 国产精品538一区二区在线| 精品免费国产一区二区三区四区| 免费在线观看不卡| 久久这里只有精品6| 国产成人a级片| 亚洲人妖av一区二区| 91麻豆精品一区二区三区| 亚洲一区二区三区美女| 欧美日韩精品欧美日韩精品一 | 91精品在线观看入口| 首页综合国产亚洲丝袜| 日韩欧美国产综合一区| 国产一区二区影院| 亚洲色图一区二区| 5566中文字幕一区二区电影| 国产一区二区中文字幕| 18成人在线视频| 欧美男女性生活在线直播观看| 日本不卡在线视频| 国产精品色在线观看| 欧美性受xxxx黑人xyx性爽| 蜜臀91精品一区二区三区| 亚洲国产精品精华液ab| 欧美在线观看视频一区二区 | 日韩精品视频网站| 久久色在线观看| 色综合视频在线观看| 五月天激情综合| 欧美激情在线一区二区| 欧美吻胸吃奶大尺度电影| 久久aⅴ国产欧美74aaa| 日韩毛片在线免费观看| 91精品国产综合久久精品性色| 成人午夜免费电影| 热久久一区二区| 日韩码欧中文字| xnxx国产精品| 欧美三日本三级三级在线播放| 狠狠色综合播放一区二区| 亚洲猫色日本管| 久久亚洲影视婷婷| 3d动漫精品啪啪1区2区免费| 成人动漫av在线| 看电视剧不卡顿的网站| 中文字幕日本乱码精品影院| 日韩一级视频免费观看在线| 99久久综合精品| 国产在线一区二区| 日日夜夜精品视频免费| 亚洲欧美日韩中文字幕一区二区三区| 精品乱码亚洲一区二区不卡| 欧美三级电影网| 91免费看`日韩一区二区| 国产精品亚洲第一区在线暖暖韩国| 亚洲国产综合在线| 亚洲欧美日韩国产手机在线 | 日韩女优视频免费观看| 欧美亚洲国产一区二区三区va | ...av二区三区久久精品| 日韩西西人体444www| 在线日韩一区二区| 成人国产精品免费| 国产成人av电影在线| 国产乱码精品一区二区三区五月婷| 日韩高清欧美激情| 亚洲二区在线视频| 一区二区三区免费| 亚洲精品写真福利| 亚洲色图丝袜美腿| 亚洲免费观看高清完整版在线观看 | 久久精品国产秦先生| 天天av天天翘天天综合网色鬼国产 | 国产精品污www在线观看| 欧美电影免费观看高清完整版在| 5858s免费视频成人| 91精品国产乱| 日韩视频在线观看一区二区| 日韩视频免费观看高清完整版在线观看 | 欧美极品另类videosde| 精品剧情在线观看| 久久久久久久综合狠狠综合| 久久亚洲影视婷婷| 国产午夜久久久久| 国产精品污网站| 亚洲欧美视频在线观看| 亚洲天堂2014| 亚洲一卡二卡三卡四卡| 亚洲第一主播视频| 日韩国产一区二| 激情丁香综合五月| 成人性生交大片免费看中文| av欧美精品.com| 色婷婷狠狠综合| 欧美酷刑日本凌虐凌虐| 日韩精品一区二区三区在线观看| 久久一留热品黄| 亚洲日本在线视频观看| 亚洲一区二区在线免费看| 日韩国产一二三区| 国产成人超碰人人澡人人澡| 91捆绑美女网站| 日韩一区二区三区免费看| 久久久久久免费网| 亚洲免费色视频| 麻豆精品视频在线观看| 成人影视亚洲图片在线| 日本韩国视频一区二区| 亚洲精品在线免费观看视频| 亚洲欧洲无码一区二区三区| 香蕉成人伊视频在线观看| 国产一区二区三区久久久| 色欧美片视频在线观看在线视频| 欧美精选在线播放| 亚洲国产岛国毛片在线| 香蕉av福利精品导航| 国产盗摄视频一区二区三区| 欧美性猛交xxxx乱大交退制版 | 欧美精品一二三| 国产日韩欧美精品综合| 亚洲国产成人精品视频| 国产成人精品影视| 91麻豆精品国产自产在线| 国产精品嫩草影院com| 日日夜夜一区二区| a美女胸又www黄视频久久| 欧美一级久久久| 亚洲黄色小说网站| 国产激情一区二区三区| 91精品国产综合久久小美女| 中文字幕一区二区三区在线不卡 | 久久精品视频一区二区| 亚洲国产成人tv| aaa欧美日韩| 久久只精品国产| 美女免费视频一区二区| 色偷偷一区二区三区| 日本一区二区成人在线| 精品午夜久久福利影院| 欧美区在线观看| 一二三四社区欧美黄| 成人激情免费视频| 国产人成一区二区三区影院| 久久99最新地址| 日韩欧美一区中文| 日韩和欧美一区二区三区| 在线观看成人小视频| 亚洲欧美日韩一区二区 | 美女高潮久久久| 欧美日韩国产精品成人| 亚洲国产一区二区视频| 91丝袜美女网| 亚洲色欲色欲www| 91免费观看国产| 亚洲另类在线制服丝袜| 成人app软件下载大全免费| 国产欧美日产一区| 国产一区二区不卡| 国产三级一区二区| 国产99久久久久久免费看农村| 国产亚洲欧美激情| 成人av资源在线| 国产精品国产三级国产普通话蜜臀|