def get_bin_index(self, value):
        """Used to get the index of the bin to place a particular value."""
        if value == self.max_value:
            return self.num_bins - 1

        return int(self.C * log(value / self.min_value))
Used to get the index of the bin to place a particular value.