MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/
\Communications Toolbox

CommunicationsToolbox:

  \ \

HUFFMANDECO

:

dsig = huffmandeco(comp,dict)

:

dsig = huffmandeco(comp,dict)
comp dict. dict N 2, N - . dict , - . -, dict . dict huffmandict, - huffmanenco. dict , dsig ; , dict, , dsig .

:

, .

symbols = [1:6];                         %  
p = [.5 .125 .125 .125 .0625 .0625];     %  
[dict,avglen] = huffmandict(symbols,p);  %  
actualsig = randsrc(1,100,[symbols; p]); %     p
comp = huffmanenco(actualsig,dict);      %  
dsig = huffmandeco(comp,dict);           %   
isequal(actualsig,dsig) %   

, .

ans =
     1

: huffmandict, huffmanenco.

:

[1] Sayood, Khalid, Introduction to Data Compression, San Francisco, Morgan Kaufmann, 2000.

   \ \


:


 Orphus