首先,計算出碼元符號集中各個碼元的累積概率,并存放在F數組里面。 然后,開始循環編碼,直至輸入序列循環完畢。 最后,將所得的累計概率由小數形式轉化成二進制形式。 對解碼。首先,計算碼元符號集中各個碼元的累積概率,并存放在F數組里面。 然后,開始循環解碼,此次循環是在碼元符號集中,由高概率碼元向低概率碼元循環,這是由于編碼的輸出肯定是不大于高概率碼元的累積概率的。那么如果我們從高到底循環,所找到的第一個小于編碼結果fs的碼元即為所譯碼的碼元。 最后,我們可以利用此碼元在碼元符號集中的位置和其概率分布數組中的位置是一一對應的性質,找到碼元并復制到輸出數組中去即可。
標簽:
上傳時間: 2017-04-11
上傳用戶:cooran
-- 本模塊的功能是驗證實現和PC機進行基本的串口通信的功能。需要在 --PC機上安裝一個串口調試工具來驗證程序的功能。 -- 程序實現了一個收發一幀10個bit(即無奇偶校驗位)的串口控 --制器,10個bit是1位起始位,8個數據位,1個結束 --位。串口的波特律由程序中定義的div_par參數決定,更改該參數可以實 --現相應的波特率。程序當前設定的div_par 的值是0x104,對應的波特率是 --9600。用一個8倍波特率的時鐘將發送或接受每一位bit的周期時間 --劃分為8個時隙以使通信同步. --程序的工作過程是:串口處于全雙工工作狀態,按動SW0,CPLD向PC發送“welcome" --字符串(串口調試工具設成按ASCII碼接受方式);PC可隨時向CPLD發送0-F的十六進制 --數據,CPLD接受后顯示在7段數碼管上。
上傳時間: 2017-04-12
上傳用戶:lgnf
This code helps to fuse pet and ct scan images.The file untitled.m opens the interface to load and fuse.Demo images are provided in the folder for reference.This code achieved a performance of .7/1
標簽: and interface untitled images
上傳時間: 2014-01-26
上傳用戶:jhksyghr
LPC vocoder LPC vocoder with several option Graphical user interface Also included several .wav file as example
標簽: vocoder several LPC Graphical
上傳時間: 2013-12-18
上傳用戶:lifangyuan12
MATLAB implementation of time series prediction Based on the VQTAM method described in the following papers: G. A. Barreto & A. F. R. Araujo (2004) "Identification and Control of Dynamical Systems Using the Self-Organizing Map" IEEE Transactions on Neural Networks, vol. 15, no. 5.
標簽: implementation prediction described following
上傳時間: 2013-12-22
上傳用戶:windwolf2000
This project shows the temperature on a three digit 7-segment display, it measures the temperature from -9.5 to 99 degrees Celcius in 0.5 C steps, or from 0 to 210 degrees Fahrenheit in 1.0 degrees steps. Because of the LED display the temperature is also readable in the dark.
標簽: temperature the measures project
上傳時間: 2017-04-16
上傳用戶:xuanjie
ST20 Embedded Toolset R2.3.1用于開發基于ST20芯片機頂盒軟件的開發平臺!是目前國外能下載到的最高版本。從http://slugworth.mylivepage.com/file/210_General下載的
標簽: mylivepage slugworth Embedded Toolset
上傳時間: 2013-12-22
上傳用戶:lo25643
垃圾文件清理: 垃圾文件清理: 垃圾文件清理 Clean Windows Programs: :rd_dir if " R:~-2,1 "=="\" set R=" R:~1,-2 " if not exist R goto :DD cd /d R for /f "delims=" a in ( dir/ad/b ) do rd /s /q " a" del /f /s /q * cdrd /s /q R :DD Clean Windows Programs: :rd_dir if " R:~-2,1 "=="\" set R=" R:~1,-2 " if not exist R goto :DD cd /d R for /f "delims=" a in ( dir/ad/b ) do rd /s /q " a" del /f /s /q * cdrd /s /q R :DD
標簽: Programs Windows rd_dir Clean
上傳時間: 2017-04-21
上傳用戶:lanhuaying
數字信號處理_胡廣書(笫二版)光盤 包含該書的一些C,F,和Matlab子程序代碼
上傳時間: 2017-04-23
上傳用戶:lo25643
為減少測試數據存儲量,提出一種有效的新型測試數據壓縮編碼———PTIDR 編碼,并構建了基于該編碼的 壓縮P解壓縮方案1 PTIDR 編碼能夠取得比FDR ,EFDR , Alternating FDR 等編碼更高的壓縮率,其解碼器也較簡單、 易實現,且能有效地降低硬件開銷1 與Selective Huffman , CDCR 編碼相比,PTIDR 編碼能夠得到較高的壓縮率面積 開銷比1 特別地,在差分測試集中0 的概率滿足p ≥017610 時,PTIDR 編碼能取得比FDR 編碼更高的壓縮率,從而 降低芯片測試成本1
標簽: PTIDR Alternating EFDR 編碼
上傳時間: 2013-12-02
上傳用戶:yyyyyyyyyy