def clear(self):
    """Clear the sample."""
    for i in range(len(self.sample)):
      self.sample[i] = 0.0
    self.count = 0
def clear ( self ) : for i in range ( len ( self . sample ) ) : self . sample [ i ] = 0.0 self . count = 0
Clear the sample.