if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
標(biāo)簽: unchanged fprintf inname unlink
上傳時(shí)間: 2015-03-12
上傳用戶(hù):l254587896
用Burg算法估計(jì)AR模型參數(shù),進(jìn)而實(shí)現(xiàn)功率譜估計(jì). 形參說(shuō)明: x——雙精度實(shí)型一維數(shù)組,長(zhǎng)度為n,存放隨機(jī)序列。 n--整型變量,隨機(jī)序列的長(zhǎng)度。 p--整型變量,AR模型的階數(shù)。 a--雙精度實(shí)型一維數(shù)組,長(zhǎng)度為(p十1)。存放AR模型的系數(shù)a(0),a(1),...,a(p)。 v--雙精度實(shí)型指針,它指向預(yù)測(cè)誤差功率,即AR模型激勵(lì)白噪聲的方差。
標(biāo)簽: Burg AR模型 算法 參數(shù)
上傳時(shí)間: 2013-12-21
上傳用戶(hù):330402686
這個(gè)文檔用于I/O管理器和基本文件系統(tǒng)之間的過(guò)濾驅(qū)動(dòng)。文件系統(tǒng)可能是本地或者網(wǎng)絡(luò)的。這個(gè)文檔不涉及文件系統(tǒng)和存儲(chǔ)設(shè)備之間的過(guò)濾驅(qū)動(dòng),比如FtDisk和DMIO. 我們將主要討論一種新的文件系統(tǒng)過(guò)濾驅(qū)動(dòng)模型,所謂的微過(guò)濾器(minfiter)
標(biāo)簽: 文件系統(tǒng) 文檔 過(guò)濾驅(qū)動(dòng) 存儲(chǔ)設(shè)備
上傳時(shí)間: 2015-04-29
上傳用戶(hù):kikye
附有本人超級(jí)詳細(xì)解釋?zhuān)床欢拿姹谑欤。? 一、 實(shí)際問(wèn)題: 希爾排序(Shell Sort)是插入排序的一種。因D.L.Shell于1959年提出而得名。它又稱(chēng)“縮小增量分類(lèi)法”,在時(shí)間效率上比插入、比較、冒泡等排序算法有了較大改進(jìn)。能對(duì)無(wú)序序列按一定規(guī)律進(jìn)行排序。 二、數(shù)學(xué)模型: 先取一個(gè)小于n的整數(shù)d1作為第一個(gè)增量,把文件的全部記錄分成d1個(gè)組。所有距離為dl的倍數(shù)的記錄放在同一個(gè)組中。先在各組內(nèi)進(jìn)行直接插人排序;然后,取第二個(gè)增量d2<d1重復(fù)上述的分組和排序,直至所取的增量dt=1(dt<dt-l<…<d2<d1),即所有記錄放在同一組中進(jìn)行直接插入排序?yàn)橹埂T摲椒▽?shí)質(zhì)上是一種分組插入方法。 三、算法設(shè)計(jì): 1、將相隔某個(gè)增量dlta[k]的元素構(gòu)成一個(gè)子序列。在排序過(guò)程中,逐次減小這個(gè)增量,最后當(dāng)h減到1時(shí),進(jìn)行一次插入排序,排序就完成。增量序列一般采用:dlta[k]=2t-k+1-1,其中t為排序趟數(shù),1≤k≤t≤[log2 (n+1)],其中n為待排序序列的長(zhǎng)度。按增量序列dlta[0..t-1]。 2、按增量dlta[k](1≤k≤t≤[log2 (n+1)])進(jìn)行一趟希爾插入排序。 3、在主函數(shù)中控制程序執(zhí)行流程。 4、時(shí)間復(fù)雜度:1≤k≤t≤[log2 (n+1)]時(shí)為O(n3/2)。
上傳時(shí)間: 2013-12-11
上傳用戶(hù):天涯
對(duì)二維粘性不可壓N-S方程求解,生成O型網(wǎng)格
上傳時(shí)間: 2014-01-04
上傳用戶(hù):chongcongying
迄今為止,本書(shū)已介紹了可在Microsoft Wi n d o w s操作系統(tǒng)中使用的全部網(wǎng)絡(luò)A P I函數(shù)。 利用這些函數(shù),我們的應(yīng)用程序可通過(guò)網(wǎng)絡(luò),建立與其他程序的通信聯(lián)系。在那些討論中, 我們?cè)诤艽蟪潭壬蠈⒅攸c(diǎn)放在七層O S I模型的應(yīng)用層和表示層上面
標(biāo)簽:
上傳時(shí)間: 2015-07-08
上傳用戶(hù):royzhangsz
設(shè)計(jì)一個(gè)O(n2)時(shí)間的算法,找出由n個(gè)數(shù)組成的序列的最長(zhǎng)單調(diào)遞增子序列。
上傳時(shí)間: 2015-07-15
上傳用戶(hù):qq21508895
Embest S3C44B0X Evaluation Board RTC Test Example RTC Check(Y/N)? y Set Default Time at 2004-12-31 FRI 23:59:59 Set Alarm Time at 2005-01-01 00:00:01 ... RTC Alarm Interrupt O.K. ... Current Time is 2005-01-01 SAT 00:00:01 RTC Working now. To set date(Y/N)? y Current date is (2005,01,01, SAT). input new date (yy-mm-dd w): 5-2-23 3 Current date is: 2005-02-23 WED RTC Working now. To set time(Y/N)? y Current time is (00:00:21). To set time(hh:mm:ss): 19:32:5 Current Time is 2005-02-23 WED 19:32:
標(biāo)簽: Evaluation RTC S3C44B0X Default
上傳時(shí)間: 2014-01-03
上傳用戶(hù):baiom
在sco unix 下顯示前n天或后n天日期的處理程序。 printf("功能: 時(shí)間戳與時(shí)間格式字符串的轉(zhuǎn)換程序\n") printf(" -i 輸入的參數(shù)為時(shí)間戳\n") printf(" -s 輸入的參數(shù)為格式化時(shí)間\n") printf(" -t 輸入的時(shí)間取當(dāng)前系統(tǒng)時(shí)間\n") printf(" -x 輸入的時(shí)間增加或減少的天數(shù)\n") printf(" -o 輸出的時(shí)間為時(shí)間戳格式\n") printf(" -O 輸出的時(shí)間為格式化時(shí)間\n") printf(" -h 幫助文件-查看[format]如何定義,例 %s -h\n",procname) printf("范例:1 取當(dāng)前日期的前2天的時(shí)間顯示 %s -t -x -2\n",procname) printf(" 2 取20030101的前5天的時(shí)間顯示 %s -s 20030101000000 -x -5\n",procname) printf(" 3 取20031231的后5天的時(shí)間顯示 %s -s 20031231000000 -x 5 -O \"%%D %%T\"\n",procname) printf(" 4 取時(shí)間戳為1089619417的時(shí)間顯示 %s -i 1089619417 \n",procname) printf(" 5 取時(shí)間戳為1089619417的后4天的時(shí)間顯示 %s -i 1089619417 -x 4 \n",procname)
標(biāo)簽: printf unix sco 處理程序
上傳時(shí)間: 2015-10-17
上傳用戶(hù):TRIFCT
acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows: (a) The setup time for the first wooden stick is 1 minute. (b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l and weight w if l<=l and w<=w . Otherwise, it will need 1 minute for setup.
標(biāo)簽: WoodenSticks Description length wooden
上傳時(shí)間: 2014-03-08
上傳用戶(hù):netwolf
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1