功能:編寫(xiě)的計(jì)算皮亞諾相關(guān)系數(shù) 開(kāi)發(fā)語(yǔ)言:ruby 調(diào)用:correlate(x,y) 其中,x,y為需要計(jì)算相關(guān)度的向量 調(diào)用示例: a = [3, 6, 9, 12, 15, 18, 21] b = [1.1, 2.1, 3.4, 4.8, 5.6] c = [1.9, 1.0, 3.9, 3.1, 6.9] c1 = correlate(a,a) # 1.0 c2 = correlate(a,a.reverse) # -1.0 c3 = correlate(b,c) # 0.8221970228 puts c1#,c2,c3
標(biāo)簽: correlate ruby 計(jì)算 12
上傳時(shí)間: 2013-12-18
上傳用戶:skfreeman
摘 要 1 前 言 2 正 文 4 1. 采用類(lèi)C語(yǔ)言定義相關(guān)的數(shù)據(jù)類(lèi)型 4 2. 各模塊的偽碼算法 5 3. 函數(shù)的調(diào)用關(guān)系圖 7 4. 調(diào)試分析 8 5. 測(cè)試結(jié)果 9 6. 源程序(帶注釋?zhuān)?10 總結(jié) 29 參考文獻(xiàn) 30 致謝 31 摘 要 哈夫曼編碼(Huffman Coding)是一種編碼方式,以哈夫曼樹(shù)—即最優(yōu)二叉樹(shù),帶權(quán)路徑長(zhǎng)度最小的二叉樹(shù),經(jīng)常應(yīng)用于數(shù)據(jù)壓縮。在計(jì)算機(jī)信息處理中,“哈夫曼編碼”是一種一致性編碼法(又稱(chēng)"熵編碼法"),用于數(shù)據(jù)的無(wú)損耗壓縮。這一術(shù)語(yǔ)是指使用一張?zhí)厥獾木幋a表將源字符(例如某文件中的一個(gè)符號(hào))進(jìn)行編碼。 關(guān)鍵詞:哈夫曼;編碼;譯碼,通信
上傳時(shí)間: 2013-12-19
上傳用戶:kristycreasy
這是一個(gè)用C++實(shí)現(xiàn)的0/1背包問(wèn)題,它是用貪心法實(shí)現(xiàn)的。
標(biāo)簽: 背包問(wèn)題
上傳時(shí)間: 2016-03-16
上傳用戶:Zxcvbnm
冒泡法是數(shù)據(jù)排序的一種基本算法,它的基本方法是:相鄰兩元素進(jìn)行比較,如有需要?jiǎng)t進(jìn)行交換, 每完成一次循環(huán)就將最小元素排在最后(如從大到小排序),下一次循環(huán)是將其他的數(shù)進(jìn)行類(lèi)似操作? 如將N 個(gè)數(shù)按從大到小排序,Turbo C語(yǔ)言程序函數(shù)
標(biāo)簽: 排序 元素 循環(huán) 數(shù)據(jù)
上傳時(shí)間: 2016-03-20
上傳用戶:趙云興
鮑威爾法無(wú)約束優(yōu)化程序,程序用在vc6.00++環(huán)境用c語(yǔ)言編寫(xiě)絕對(duì)好用!
標(biāo)簽: 程序
上傳時(shí)間: 2016-03-21
上傳用戶:Altman
用C實(shí)現(xiàn)多級(jí)反饋調(diào)度算法。在隊(duì)列中使用FCFS,隊(duì)列間使用時(shí)間片法
標(biāo)簽: FCFS 多級(jí) 反饋調(diào)度 算法
上傳時(shí)間: 2016-03-23
上傳用戶:Ants
C#平臺(tái)下的隨機(jī)一致性指標(biāo)RI計(jì)算,主要是對(duì)大學(xué)數(shù)學(xué)建模層次分析法章節(jié)RI計(jì)算部分內(nèi)容的實(shí)現(xiàn)。
標(biāo)簽: 隨機(jī) 指標(biāo) 計(jì)算
上傳時(shí)間: 2016-03-23
上傳用戶:csgcd001
C語(yǔ)言精彩百例第71-93例 第三篇 常用算法篇 實(shí)例71 鏈表的建立 實(shí)例72 鏈表的基本操作 實(shí)例73 隊(duì)列的應(yīng)用 實(shí)例74 堆棧的應(yīng)用 實(shí)例75 串的應(yīng)用 實(shí)???76 樹(shù)的基本操作 實(shí)例77 冒泡排序法 實(shí)例78 堆排序 實(shí)例79 歸并排序 實(shí)例80 磁盤(pán)文件排序 實(shí)例81 順序查找 實(shí)例82 二分法查找 實(shí)例83 樹(shù)的動(dòng)態(tài)查找 實(shí)例84 二分法求解方程 實(shí)例85 牛頓迭代法求解方程 實(shí)例86 弦截法求解方程 實(shí)例87 拉格朗日插值 實(shí)例88 最小二乘法擬合 實(shí)例89 辛普生數(shù)值積分 實(shí)例90 改進(jìn)歐拉法 實(shí)例91 龍格-庫(kù)塔法 實(shí)例92 高斯消去法 實(shí)例93 正定矩陣求逆
上傳時(shí)間: 2016-03-24
上傳用戶:thinode
Intro/: Directory containing introductory examples. HelloWorld.c A simple program that draws a box and writes "Hello World" in HelloWorld.f it. data The data file for the introductory progressive example. Lines.c Reads the data from file "data" and plots just the curve with Lines.f no labels, viewport or anything indicating quantity or units. Viewport.c Restricts the graph to a viewport and frames the viewport, Viewport.f leaving the remainder of the area for labels, etc. CharLbls.c Adds labels for the chart title, X-axis title, and Y-axis CharLbls.f title. Tics.c Adds tic marks to the viewport edges, but since clipping was Tics.f not set correctly, tics extend outside the viewport. Clip.c Sets clipping such that tic marks are clipped at the viewport Clip.f boundaries. TicLabels.c Adds numeric tic labels to the graph this is the final TicLabels.f installment of the progressive example.
標(biāo)簽: introductory HelloWorld containing Directory
上傳時(shí)間: 2016-03-29
上傳用戶:exxxds
實(shí)現(xiàn)快速排序法,c,c++編寫(xiě)。比較容易實(shí)現(xiàn)
標(biāo)簽: 快速排序
上傳時(shí)間: 2014-01-23
上傳用戶:13215175592
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1