Content deleted Content added
→Construction of codes: revise b def in this part to agree with other part |
|||
Line 29:
[[Image:GolombCodeRedundancy.svg|300px|This image shows the redundancy of the Golomb code, when M is chosen optimally for ''p'' ≥ 1/2.|thumb|right]]
Both ''q'' and ''r'' will be encoded using variable numbers of bits – ''q'' by a unary code, and <math>r</math> by ''b'' bits for Rice code, or a choice between ''b''
The integer ''x'' treated by Golomb was the run length of a [[Bernoulli process]], which has a [[geometric distribution]] starting at 0. The best choice of parameter ''M'' is a function of the corresponding Bernoulli process, which is parameterized by <math>p = P(X=0)</math> the probability of success in a given [[Bernoulli trial]]. <math>M</math> is either the median of the distribution or the median +/− 1. It can be determined by these inequalities:
|