So I’m self studying information theory, and I think I somewhat grasp the theory behind Huffman coding, entropy etc. However, I’m wondering how I should apply arithmetic encoding to, for example, an 8-bit int waveform in python practically. I understand that arithmetic coding has had innumerous optimizations over the years, so is there a good library I could use? Should I even be using python in the first place?
Thanks!
I have tried using a few other compression techniques and did some string encoding, but I’m sure it was far from optimal. I have also have a code that approximates the probability distribution of a waveform to use in the encoding.