def __init__(self, bins, min_val, max_val):
            if bins < 2:
                raise ValueError('Must have at least 2 bins.')
            self._min = float(min_val)
            self._max = float(max_val)
            self._bins = int(bins)
            self._bucket_width = (max_val - min_val) / (bins - 2)
dataset/ETHPy150Open dpkp/kafka-python/kafka/metrics/stats/histogram.py/Histogram.ConstantBinScheme.__init__/original