<< alignsignals FOSSEE_Communication_Systems_Toolbox arithenco >>

FOSSEE_Communication_Systems_Toolbox >> FOSSEE_Communication_Systems_Toolbox > arithdeco

arithdeco

This function decodes the given code using arithmetic coding

Syntax

SEQ = ARITHDECO(CODE, COUNT, LEN)

Description

SEQ = ARITHDECO(CODE, COUNT, LEN) decodes the given received seq (CODE) to message using arithmetic coding. COUNT is vector which gives information about the source statistics (i.e. frequency of each symbol in the source alphabet) CODE is the binary arithmetic code

Source Alphabet is assumed to be {1,2,....N} where N is a positive integer Therefore, sequence should be finite and positive Length of the COUNT should match the length of the source alphabet

Examples

counts = [40 1 9];
len = 11;
seq = [1 3 2 1 1 1 3 3 1 1 2 ]
code = arithenco(seq,counts);
disp(code)
dseq=arithdeco(code,counts,len)
disp(dseq)
disp(seq)

Authors


Report an issue
<< alignsignals FOSSEE_Communication_Systems_Toolbox arithenco >>