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: Computes a moving average of this series' values and returns a new TimeSeries.
  The returned series has the same length and time axis as `series`. (Note that this might create border effects).
  
  Parameters
  ----------
  series
      The a deterministic series to average
  
  Returns
  -------
  TimeSeries
      A time series containing the average values
docstr_tok: ["Computes","a","moving","average","of","this","series","'","values","and","returns","a","new","TimeSeries",".","The","returned","series","has","the","same","length","and","time","axis","as","`","series","`",".","(","Note","that","this","might","create","border","effects",")",".","Parameters","--","--","--","--","--","series","The","a","deterministic","series","to","average","Returns","--","--","--","-","TimeSeries","A","time","series","containing","the","average","values"]
code: def filter(self, series: TimeSeries):
      """
      Computes a moving average of this series' values and returns a new TimeSeries.
      The returned series has the same length and time axis as `series`. (Note that this might create border effects).
  
      Parameters
      ----------
      series
          The a deterministic series to average
  
      Returns
      -------
      TimeSeries
          A time series containing the average values
      """
      transformation = {
          "function": "mean",
          "mode": "rolling",
          "window": self.window,
          "center": self.centered,
          "min_periods": 1,
      }
  
      return series.window_transform(
          transforms=transformation, forecasting_safe=False
      )
  
imports: from darts.models.filtering.filtering_model import FilteringModel
  from darts.timeseries import TimeSeries
label_desc: Use image node_id 2 for calling the MovingAverageFilter obj's underlying member method code with example usage: obj.filter(series) and returns: series