As a result of changing the learning kernel and the
codebook to be a rational-based representation, the equation
to calculate the distance between a member of the
codebook and a pixel Pt is also modified. For the L1-norm
which is mainly used in our implementations-the line with
note (2) in the above algorithm, the equation is changed to
have the following form: