docs: 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((value - self.min_value) / self.bin_size)