go-compression.github.io icon indicating copy to clipboard operation
go-compression.github.io copied to clipboard

Incorrect example range in Arithmetic Coding explanation

Open ghost opened this issue 3 years ago • 0 comments

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.

ghost avatar Oct 05 '22 08:10 ghost