Encode sequence of symbols using arithmetic coding

`code = arithenco(seq,counts) `

`code = arithenco(seq,counts) `

generates
the binary arithmetic code corresponding to the sequence of symbols
specified in the vector `seq`

. The vector `counts`

represents
the source's statistics by listing the number of times each symbol
of the source's alphabet occurs in a test data set.

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

Was this topic helpful?