FIG. 8 is a graph showing the frequency and the cumulative frequency of the changing points of a 9-bit data generated by the encoder according to the first embodiment of the invention, where not only the changing points of the 9-bit data but also the changing points generated at the boundary between adjoining 9-bit data are considered.