Golomb coding: Difference between revisions

Content deleted Content added
m Further reading: add WP:TEMPLATECAT to remove from template; genfixes
m typo
Line 68:
# Skip the 0 delimiter
# Let <math>b = \lfloor\log_2(M)\rfloor</math>
## Interpret next ''b'' bits as a binary number ''r'''. If <math>r' < 2^{b+1}-M</math> holds, then the reminderremainder <math> r = r' </math>
## Otherwise interpret ''b + 1'' bits as a binary number ''r''', the reminderremainder is given by <math>r = r' - 2^{b+1} + M</math>
# Compute <math>N = q * M + r</math>