Arithmetic coding/As a generalized change of radix: Difference between revisions
Arithmetic coding/As a generalized change of radix (view source)
Revision as of 20:23, 4 February 2016
, 8 years ago→{{header|J}}
(J: rewrite) |
m (→{{header|J}}) |
||
Line 213:
e,~<.(L+p)%10^e
)
aekDec=:adverb define
Line 299 ⟶ 298:
TOBEORNOTTOBEORTOBEORNOT</lang>
Note that for this task we use our plaintext to generate our dictionary for decoding. Also note that we use rational numbers, rather than floating point, for our dictionary, because floating point tends to be inexact.
=={{header|Perl}}==
|