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

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

?? mp_maxima.c

?? LastWave
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*..........................................................................*//*                                                                          *//*      L a s t W a v e    P a c k a g e 'mp' 2.1                           *//*                                                                          *//*      Copyright (C) 2000 Remi Gribonval, Emmanuel Bacry and Javier Abadia.*//*      email  : remi.gribonval@inria.fr                                    *//*      email  : lastwave@cmap.polytechnique.fr                             *//*                                                                          *//*..........................................................................*//*                                                                          *//*      This program is a 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                      *//*                                                                          *//*      This program 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 this program (in a file named COPYRIGHT);                *//*      if not, write to the Free Software Foundation, Inc.,                *//*      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA             *//*                                                                          *//*..........................................................................*/#include "lastwave.h"#include "mp_book.h"/*************************************//* *	MAXIMADICT VARIABLES *//*************************************/char *maximaDictType = "&maximadict";/* * Answers to the different print messages */void ShortPrintMaximaDict(MAXIMADICT maximaDict){  Printf("<&maximadict;%p>\n",maximaDict);}char *ToStrMaximaDict(MAXIMADICT maximaDict, char flagShort){  static char str[30];    sprintf(str,"<&maximadict;%p>",maximaDict);  return(str);}void PrintInfoMaximaDict(MAXIMADICT maximaDict){  PrintMaximaDict(maximaDict,NO);}MAXIMADICT TNewMaximaDict(void){  MAXIMADICT maximaDict;    maximaDict = NewMaximaDict();  TempValue(maximaDict);  return(maximaDict);}/* * Get the current maximaDict * (generate an error if there is none) */MAXIMADICT GetMaximaDictCur(void){  MAXIMADICT maximaDict;    if(!ParseTypedValLevel_(levelCur,"objCur",NULL,(VALUE *)&maximaDict,maximaDictType)) Errorf1("");    if (maximaDict == NULL) Errorf1("");    AddRefValue(maximaDict);  TempValue(maximaDict);    return(maximaDict);}/*******************************************//* *	Basic data management for MAXIMADICT */				    /*******************************************/MAXIMADICT NewMaximaDict(){  MAXIMADICT maximaDict;  #ifdef DEBUGALLOC  DebugType = "MaximaDict";#endif    maximaDict = (MAXIMADICT) Malloc(sizeof(struct maximaDict));  InitValue(maximaDict,&tsMaximaDict);  maximaDict->size = 0;  maximaDict->sizeAlloc = 0;  maximaDict->books = NULL;  maximaDict->subDicts = NULL;  maximaDict->nMaximaTarget = 0;  maximaDict->nMaxima       = 0;  maximaDict->threshold     = 0.0;  maximaDict->maxMolecule       = NULL;  return(maximaDict);}MAXIMADICT DeleteMaximaDict(MAXIMADICT maximaDict){  unsigned short i;  if (maximaDict == NULL)  Errorf("DeleteMaximaDict : NULL maximaDict");  if (maximaDict->nRef==0) Errorf("*** Danger : trying to delete a temporary maximaDict\n");  RemoveRefValue(maximaDict);  if (maximaDict->nRef > 0) return(NULL);    if(maximaDict->books) {    for(i=0; i<= maximaDict->size; i++) {if(maximaDict->books[i]) 	maximaDict->books[i] = DeleteBook(maximaDict->books[i]);    }    Free(maximaDict->books);    maximaDict->books = NULL;  }    // We do not delete the subDicts because we did not add a reference to them  if(maximaDict->subDicts) {    Free(maximaDict->subDicts);    maximaDict->subDicts = NULL;  }    maximaDict->size = 0;  maximaDict->sizeAlloc = 0;  maximaDict->nMaximaTarget = 0;  maximaDict->nMaxima       = 0;  maximaDict->threshold     = 0.0;  if(maximaDict->maxMolecule) maximaDict->maxMolecule = DeleteMolecule(maximaDict->maxMolecule);#ifdef DEBUGALLOC  DebugType = "MaximaDict";#endif    Free(maximaDict);  return(NULL);}void ClearMaximaDict(MAXIMADICT maximaDict){  unsigned short i;  if (maximaDict == NULL)  Errorf("ClearMaximaDict : NULL maximaDict");    if(maximaDict->books) {    for(i=0; i<= maximaDict->size; i++) {if(maximaDict->books[i]) 	maximaDict->books[i] = DeleteBook(maximaDict->books[i]);    }    // Note : we do not delete the array, we keep it for a later use  }    if(maximaDict->subDicts) {    for(i=0; i<= maximaDict->size; i++) {      // We do not delete subDicts because they were not allocated here and were not added a reference.      maximaDict->subDicts[i] = NULL;    }    // Note : we do not delete the array, we keep it for a later use  }    maximaDict->size = 0;  maximaDict->nMaximaTarget = 0;  maximaDict->nMaxima       = 0;  maximaDict->threshold     = 0.0;  if(maximaDict->maxMolecule) maximaDict->maxMolecule = DeleteMolecule(maximaDict->maxMolecule);}// Prints the content of a maximaDictionary, in long or short form// TODO : improve thatvoid PrintMaximaDict(const MAXIMADICT maximaDict,char flagShort){  unsigned short i;  BOOK book;  Printf("size      = %d (sizeAlloc = %d)\n",maximaDict->size,maximaDict->sizeAlloc);  Printf("nMaxima   = %d (target = %d)\n",maximaDict->nMaxima,maximaDict->nMaximaTarget);  Printf("threshold = %g\n",maximaDict->threshold);  Printf("maxmolecule :\n");  if(maximaDict->maxMolecule) PrintMolecule(maximaDict->maxMolecule,YES);  else Printf("NULL\n");  for(i = 0; i < maximaDict->size; i++) {    book = maximaDict->books[i];    Printf("book[%d] size=%d\n",i,book->size);  }}// Function that generates an error if the maximaDictionary does not contain any sub-dictionaryvoid CheckMaximaDictNotEmpty(const MAXIMADICT maximaDict){  if(maximaDict == NULL)    Errorf("CheckMaximaDictNotEmpty : NULL maximaDict");  if(maximaDict->size == 0) Errorf("CheckMaximaDictNotEmpty : empty maximaDict");}// If 'sizeAlloc' is smaller than maximaDict->size, an error is generated.// Else the allocation size of the arrays of books/sub-dictionaries are adjusted :// -the newly allocated part of the array is initialized to NULL books/sub-dictionaries;// -the previously allocated part is kept (maximaDict->size is not changed)void SizeMaximaDict(MAXIMADICT maximaDict,unsigned short sizeAlloc){  unsigned short i;  if(sizeAlloc<maximaDict->size) Errorf("SizeMaximaDict : cannot (re)allocate less than the number of books/sub-dictionaries");  if(sizeAlloc==maximaDict->size) return;  // Case of an first allocation  if(maximaDict->sizeAlloc == 0) {    maximaDict->books     =(BOOK *)    Calloc(sizeAlloc,sizeof(BOOK));    maximaDict->subDicts  =(SUBDICT *) Calloc(sizeAlloc,sizeof(SUBDICT));    maximaDict->sizeAlloc = sizeAlloc;  }  // Case of a resize  else {    maximaDict->books    =(BOOK *)    Realloc(maximaDict->books,sizeAlloc*sizeof(BOOK));    maximaDict->subDicts =(SUBDICT *) Realloc(maximaDict->subDicts,sizeAlloc*sizeof(SUBDICT));    // Initialize the newly allocated data, if necessary    for(i = maximaDict->sizeAlloc; i < sizeAlloc; i++) {      maximaDict->books[i]   =NULL;      maximaDict->subDicts[i]=NULL;    }    maximaDict->sizeAlloc = sizeAlloc;  }}// Add a sub-dictionary and creates the corresponding book for storing its local maxima.// If the sub-dictionary is not a 'main' one an error is generated.// The sub-dictionary becomes an 'auxiliary' one.// WARNING : should only be used with subDicts that already belong to a dictionary!void AddSubDict2MaximaDict(MAXIMADICT maximaDict,SUBDICT subDict) {  if(subDict->dict==NULL)   Errorf("AddSubDict2MaximaDict : (Weired) the sub-dictionary does not belong to any dictionary!");  if(subDict->flagMain==NO) Errorf("AddSubDict2MaximaDict : (Weired) the sub-dictionary is not a 'main' one");  if(maximaDict->threshold!= 0.0 || maximaDict->nMaxima!=0 || maximaDict->maxMolecule!=NULL)    Errorf("AddSubDict2MaximaDict : (Weired) maximaDict content has already been initialized %g %d %p",	   maximaDict->threshold,maximaDict->nMaxima,maximaDict->maxMolecule);  // In case we need to allocate more room  if(maximaDict->size==maximaDict->sizeAlloc) {    if(maximaDict->sizeAlloc==0) SizeMaximaDict(maximaDict,MP_DEFAULT_DICT_SIZE);    else                         SizeMaximaDict(maximaDict,2*maximaDict->sizeAlloc);  }  maximaDict->books[maximaDict->size] = NewBook();  maximaDict->subDicts[maximaDict->size]=subDict; // We do not add a reference because subDicts don't have ValueFields!  subDict->flagMain = NO;  maximaDict->size++;}/**************************************//*  * MANAGEMENT OF A LIST OF COEFF2S  *//**************************************/#define MAXCOEFFS_SIZEMIN 1<<13typedef struct maxCoeffs {  unsigned long size;  unsigned long sizeAlloc;  LWFLOAT *coeff2s;  LWFLOAT coeff2Min;  LWFLOAT coeff2Max;} *MAXCOEFFS;static MAXCOEFFS NewMaxCoeffs(void){  MAXCOEFFS maxCoeffs = NULL;  #ifdef DEBUGALLOC  DebugType = "MaxCoeffs";#endif    maxCoeffs = (MAXCOEFFS) Malloc(sizeof(struct maxCoeffs));  maxCoeffs->size = maxCoeffs->sizeAlloc = 0;  maxCoeffs->coeff2s = NULL;  maxCoeffs->coeff2Min = 0.0;  maxCoeffs->coeff2Max = 0.0;  return(maxCoeffs);}static MAXCOEFFS DeleteMaxCoeffs(MAXCOEFFS maxCoeffs){  if(maxCoeffs == NULL) Errorf("DeleteMaxCoeffs : NULL input");  if(maxCoeffs->coeff2s) {    Free(maxCoeffs->coeff2s);    maxCoeffs->coeff2s = NULL;    maxCoeffs->size = maxCoeffs->sizeAlloc = 0;  }  #ifdef DEBUGALLOC  DebugType = "MaxCoeffs";#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品一区二区乱码| 欧美不卡一二三| 91婷婷韩国欧美一区二区| 国产精品自拍在线| 精品亚洲porn| 国产一区二区三区视频在线播放| 久久精品久久99精品久久| 麻豆极品一区二区三区| 天天影视色香欲综合网老头| 亚洲二区在线视频| 午夜欧美2019年伦理| 舔着乳尖日韩一区| 美女视频一区二区| 狠狠色狠狠色综合| 国产麻豆精品95视频| 国产精品1024久久| 99re成人精品视频| 日本高清视频一区二区| 在线观看一区二区视频| 欧美色综合网站| 911国产精品| 欧美成人一区二区三区| 久久夜色精品国产欧美乱极品| 精品国产一区二区三区久久久蜜月 | 精品一区二区三区蜜桃| 精品一区二区日韩| 国产一区不卡视频| av电影在线观看不卡| 色偷偷成人一区二区三区91| 欧美亚洲综合久久| 日韩西西人体444www| 亚洲精品在线观| 国产精品看片你懂得| 亚洲欧美日本在线| 日欧美一区二区| 国产乱码精品一区二区三区忘忧草| 粉嫩av一区二区三区粉嫩 | 2024国产精品| 欧美激情一区二区三区在线| 亚洲欧美区自拍先锋| 性做久久久久久久免费看| 久久国产麻豆精品| 播五月开心婷婷综合| 欧美午夜精品久久久久久超碰| 日韩欧美中文字幕一区| 国产精品美女久久久久久2018| 亚洲一区在线观看网站| 久草精品在线观看| 9久草视频在线视频精品| 欧美精品自拍偷拍| 国产欧美一区二区精品忘忧草 | 亚洲精品高清在线| 捆绑调教一区二区三区| 99久久免费国产| 欧美日韩美女一区二区| 久久精品一区四区| 亚洲一区二区精品久久av| 国产久卡久卡久卡久卡视频精品| 91女厕偷拍女厕偷拍高清| 日韩视频在线你懂得| 中文字幕日韩精品一区 | 在线91免费看| 国产精品久久久久久久蜜臀| 日韩成人一区二区三区在线观看| 成人午夜激情视频| 91精品国产色综合久久| 亚洲乱码国产乱码精品精98午夜| 麻豆一区二区三| 在线观看日韩高清av| 国产亚洲综合在线| 丝袜美腿高跟呻吟高潮一区| 99re这里只有精品首页| 久久综合99re88久久爱| 婷婷成人激情在线网| 91视频在线观看| 欧美经典三级视频一区二区三区| 偷拍一区二区三区四区| 91色.com| 国产精品每日更新| 国产一区二区三区在线观看免费视频 | 国产精品久久久久影院老司| 日本成人在线一区| 欧美性淫爽ww久久久久无| 国产精品另类一区| 国产一区免费电影| 日韩一级片网站| 婷婷久久综合九色综合伊人色| 91免费精品国自产拍在线不卡| 久久综合久久鬼色中文字| 青青草97国产精品免费观看| 欧美在线视频日韩| 亚洲免费观看高清完整版在线观看熊| 国产成人av网站| 久久视频一区二区| 精品在线免费视频| 精品欧美乱码久久久久久| 男男视频亚洲欧美| 91精品国产麻豆| 日韩国产精品久久久| 欧美日韩大陆在线| 亚洲午夜免费视频| 欧美天堂一区二区三区| 亚洲一区二区综合| 欧美自拍丝袜亚洲| 亚洲在线免费播放| 欧美日韩成人激情| 视频一区二区中文字幕| 欧美高清一级片在线| 日韩精品乱码免费| 色婷婷av一区| 国产精品一二三| 日本一区二区三区久久久久久久久不 | 亚洲一区二区三区四区不卡| 色婷婷亚洲综合| 国产99精品在线观看| 国产日韩欧美一区二区三区乱码 | 日韩欧美一区在线观看| 日韩国产一区二| 91精品欧美一区二区三区综合在 | 中文字幕五月欧美| 99视频有精品| 亚洲精品中文字幕乱码三区| 91福利区一区二区三区| 亚洲sss视频在线视频| 91精品婷婷国产综合久久性色| 美女视频黄免费的久久 | 国产日韩亚洲欧美综合| 丰满白嫩尤物一区二区| 国产精品电影院| 色播五月激情综合网| 午夜激情一区二区| 欧美成人在线直播| 国产suv精品一区二区三区| 国产精品视频一二三区| 色婷婷激情综合| 天天综合天天做天天综合| 日韩三级视频中文字幕| 国产精品一区二区免费不卡 | 国产精品久久久久久户外露出| 色婷婷亚洲精品| 美女免费视频一区| 国产日韩精品一区二区三区| 色综合一个色综合亚洲| 日韩高清不卡一区二区| 久久久久久久久岛国免费| 91亚洲男人天堂| 麻豆91精品91久久久的内涵| 亚洲国产精品成人综合| 欧美色图免费看| 国产乱码精品一区二区三| 一区二区三区国产豹纹内裤在线| 欧美一二三区在线观看| 波多野结衣在线一区| 亚洲高清在线视频| 中文字幕精品三区| 欧美久久久久免费| 成人美女在线观看| 91日韩精品一区| 精品亚洲aⅴ乱码一区二区三区| 亚洲天堂2016| 精品美女被调教视频大全网站| 91片黄在线观看| 国产精品一线二线三线| 亚洲高清免费一级二级三级| 国产欧美日韩视频在线观看| 在线不卡的av| 91麻豆蜜桃一区二区三区| 久久99国产精品成人| 一区二区三区视频在线看| 久久久久久久久久久久久久久99| 欧美午夜免费电影| 成人av在线影院| 精品一区二区三区日韩| 亚洲成人免费av| 一区精品在线播放| 久久综合九色综合久久久精品综合| 欧美在线不卡一区| 豆国产96在线|亚洲| 久久av中文字幕片| 亚洲成人综合在线| 亚洲欧美另类在线| 国产无遮挡一区二区三区毛片日本 | 欧美日韩高清影院| 99视频在线观看一区三区| 国产米奇在线777精品观看| 天堂va蜜桃一区二区三区 | proumb性欧美在线观看| 久久爱www久久做| 午夜精品一区二区三区三上悠亚| 国产精品久久久久久妇女6080| 久久免费视频色| 日韩免费视频一区| 欧美精品乱人伦久久久久久| 色狠狠综合天天综合综合| 成人免费看视频| 国产福利不卡视频| 激情文学综合网| 蜜乳av一区二区| 日韩精品亚洲一区二区三区免费| 一区二区三区**美女毛片|