code: def update(self, prob):
          # type: (float) -> bool
          
          chunk_activated = prob > 1.0 - self.sensitivity
  
          if chunk_activated or self.activation < 0:
              self.activation += 1
              has_activated = self.activation > self.trigger_level
              if has_activated or chunk_activated and self.activation < 0:
                  self.activation = -(8 * 2048) // self.chunk_size
  
              if has_activated:
                  return True
          elif self.activation > 0:
              self.activation -= 1
          return False
docs: Returns whether the new prediction caused an activation