Python package implementing Golomb coding.
Project description
Python package implementing Golomb coding.
How do I install this package?
As usual, just download it using pip:
pip install golomb_coding
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
from golomb_coding import golomb_coding
golomb_coding(0, 3) # 10
golomb_coding(1, 3) # 110
golomb_coding(2, 3) # 111
golomb_coding(3, 3) # 010
golomb_coding(4, 3) # 0110
golomb_coding(5, 3) # 0111
golomb_coding(6, 3) # 0010
golomb_coding(7, 3) # 00110
golomb_coding(8, 3) # 00111
golomb_coding(9, 3) # 00010
golomb_coding(10, 3) # 000110
golomb_coding(11, 3) # 000111
golomb_coding(12, 3) # 000010
golomb_coding(13, 3) # 0000110
golomb_coding(14, 3) # 0000111
golomb_coding(15, 3) # 0000010
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
golomb_coding-1.0.1.tar.gz
(2.9 kB
view hashes)