code: def next(self, newValue):
      
      newAverage, self.slidingWindow, self.total = self.compute(
          self.slidingWindow, self.total, newValue, self.windowSize)
      return newAverage
docs: Instance method wrapper around compute.