class_docstr: A simple moving average filter. Works on deterministic and stochastic series.
class_docstr_tok: ["A","simple","moving","average","filter",".","Works","on","deterministic","and","stochastic","series","."]
docstr: Parameters
  ----------
  window
      The length of the window over which to average values
  centered
      Set the labels at the center of the window. If not set, the averaged values are lagging after
      the original values.
docstr_tok: ["Parameters","--","--","--","--","--","window","The","length","of","the","window","over","which","to","average","values","centered","Set","the","labels","at","the","center","of","the","window",".","If","not","set",",","the","averaged","values","are","lagging","after","the","original","values","."]
code: def __init__(self, window: int, centered: bool = True):
      """
      Parameters
      ----------
      window
          The length of the window over which to average values
      centered
          Set the labels at the center of the window. If not set, the averaged values are lagging after
          the original values.
      """
      super().__init__()
      self.window = window
      self.centered = centered
  
imports: from darts.models.filtering.filtering_model import FilteringModel
  from darts.timeseries import TimeSeries
label_desc: Use image node_id 1 to create a new MovingAverageFilter object from inherited base classes: FilteringModel with example: obj = MovingAverageFilter(window, centered)