1. An encoder circuit characterized in that a logic thereof is configured to take a thermometer code as an input and to output as an encoded value a center value of a range in which one or more encoded values are distributed, said one or more encoded values corresponding to positions of one or more boundaries between “0” and “1” appearing in the thermometer code.