def RegisterValue(self, value):
    """Puts a given value into an appropriate bin."""
    if self.bins:
      for b in self.bins:
        if b.range_max_value > value:
          b.num += 1
          return

      self.bins[-1].num += 1
def RegisterValue ( self , value ) : if self . bins : for b in self . bins : if b . range_max_value > value : b . num += 1 return self . bins [ - 1 ] . num += 1
Puts a given value into an appropriate bin.