(self, window_size: int)
Initializes the class.

    Args:
      window_size: The moving window size.
Initializes the class.
Initializes the class .
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
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