go-compression / go-compression.github.io

The Hitchhiker's Guide to Compression
https://go-compression.github.io/
MIT License
136 stars 9 forks source link

Incorrect example range in Arithmetic Coding explanation #9

Open ghost opened 1 year ago

ghost commented 1 year ago

I had created a pull-request first with the corrected values, but then I noticed that there are images with the same incorrect values, so I'm resubmitting this as an issue.

I believe there's an incorrect range given in site/algorithms/arithmetic.md

The incorrect example range is of 0.06368 to 0.06496. The result I get when calculating by hand is between 0.06752 and 0.0688.

I also double-checked the correct range at https://go-compression.github.io/interactive/arithmetic/ and it matches with my calculations.