Arithmetic coding/As a generalized change of radix: Difference between revisions
Arithmetic coding/As a generalized change of radix (view source)
Revision as of 13:57, 30 January 2016
, 8 years ago→{{header|Ruby}}: simplified the cumulative_freq() function
m (→{{header|Perl 6}}: simplified the cumulative_freq() function) |
m (→{{header|Ruby}}: simplified the cumulative_freq() function) |
||
Line 574:
cf = {}
total = 0
cf[b] = total
total +=
end
return cf
|