class_docstr: Helper class for computing moving average and sliding window
class_docstr_tok: ["Helper","class","for","computing","moving","average","and","sliding","window"]
docstr: Instance method wrapper around compute.
docstr_tok: ["Instance","method","wrapper","around","compute","."]
code: def next(self, newValue):
      """Instance method wrapper around compute."""
      newAverage, self.slidingWindow, self.total = self.compute(
          self.slidingWindow, self.total, newValue, self.windowSize
      )
      return newAverage
  
file_path: nupic-legacy/src/nupic/utils.py
imports: import numbers
  from nupic.serializable import Serializable
label_desc: Use image node_id 3 for calling the MovingAverage obj's underlying member method code with example usage: obj.next(newValue) and returns: newAverage