what does the function arithenco exactly do??

답변 (1개)

David Sanchez
David Sanchez 2013년 7월 25일

0 개 추천

From MATLAB help:
arithenco Encode a sequence of symbols using arithmetic coding. CODE = arithenco(SEQ, COUNTS) generates binary arithmetic code corresponding to the sequence of symbols specified in the vector SEQ. The vector COUNTS contains the symbol counts (the number of times each symbol of the source's alphabet occurs in a test data set) and represents the source's statistics.
Example:
% Consider a source whose alphabet is {x, y, z}. A 177-symbol test data
% set from the source contains 29 x's, 48 y's and 100 z's. To encode the
% sequence yzxzz, use these commands:
seq = [2 3 1 3 3];
counts = [29 48 100];
code = arithenco(seq, counts)

댓글 수: 1

nayana
nayana 2013년 7월 25일
my doubt is generally arithematic coding returns a tag value(floating value) but here its giving binary value ??? is this binary equivalent to tag

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

질문:

2013년 7월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by