- Category:
- matlab
- Tags:
-
[Matlab]
[源码]
- File Size:
- 1kb
- Update:
- 2014-04-11
- Downloads:
- 0 Times
- Uploaded by:
- 小清
Description: Program Algorithm 1) to enter the following string and array of sym string of source symbols appear, p is the probability of each symbol appears, seq is a sequence of symbols to be encoded. As follows: 1) the initial interval of each character: a [0,0.1), b [0.1,0.3), c [0.3,0.6), d [0.6,1.0) 3) using the following formula to calculate the upper and lower intervals: Li+1 = Li+rangei* r_L Hi+1 = Li+rangei* r_H
To Search:
File list (Check if you may need any files):
huffman code(包括熵和平均码长)\huffman.m
................................\prob.m
huffman code(包括熵和平均码长)