class_docstr: Helper class for computing moving average and sliding window
class_docstr_tok: ["Helper","class","for","computing","moving","average","and","sliding","window"]
code: def read(cls, proto):
      movingAverage = object.__new__(cls)
      movingAverage.windowSize = proto.windowSize
      movingAverage.slidingWindow = list(proto.slidingWindow)
      movingAverage.total = proto.total
      return movingAverage
  
file_path: nupic-legacy/src/nupic/utils.py
imports: import numbers
  from nupic.serializable import Serializable
label_desc: Use image node_id 9 for calling the MovingAverage obj's underlying member method code with example usage: obj.read(cls, proto) and returns: movingAverage