parameters: (self, window_size: int)
docstring: Initializes the class.
  
      Args:
        window_size: The moving window size.
docstring_summary: Initializes the class.
docstring_tokens: Initializes the class .
function: def __init__(self, window_size: int):
      """Initializes the class.
  
      Args:
        window_size: The moving window size.
      """
      assert window_size > 0
      self._window_size = window_size
      self._value_deque = collections.deque(maxlen=window_size)
      # The moving window sum.
      self._sum = 0
      # The correction term to compensate numerical precision loss during
      # calculation.
      self._correction = 0
function_tokens: def __init__ ( self , window_size : int ) : assert window_size > 0 self . _window_size = window_size self . _value_deque = collections . deque ( maxlen = window_size ) # The moving window sum. self . _sum = 0 # The correction term to compensate numerical precision loss during # calculation. self . _correction = 0