Content deleted Content added
→Construction of codes: try to fix the math; see talk page |
|||
Line 19:
Golomb–Rice codes can be thought of as codes that indicate a number by the position of the ''bin'' (''q''), and the ''offset'' within the bin (''r''). The above figure shows the position ''q'' and offset ''r'' for the encoding of integer ''N'' using Golomb–Rice parameter ''M''.
Formally, the two parts are given by the following expression, where <math>x</math> is the nonnegative integer being encoded:
:<math>q = \left \lfloor \frac{x}{M} \right \rfloor</math>
|