Golomb coding: Difference between revisions

Content deleted Content added
Construction of codes: revise b def in this part to agree with other part
Line 13:
===Construction of codes===
 
Golomb coding uses a tunable parameter <math>M</math> to divide an input value <math>''N</math>'' (aka ''x'') into two parts: <math>''q</math>'', the result of a division by <math>''M</math>'', and <math>''r</math>'', the remainder. The quotient is sent in [[unary coding]], followed by the remainder in [[truncated binary encoding]]. When <math>M=1</math>, Golomb coding is equivalent to unary coding.
 
[[Image:golomb rice code.svg]]