class_docstr: Dynamic Time Warping (DTW) Alignment.
  
  Attributes
  ----------
  n
      The length of `series1`
  m
      The length of `series2`
  series1
      A `TimeSeries` to align with `series2`.
  series2
      A `TimeSeries` to align with `series1`.
  cost
      The `CostMatrix` for DTW.
class_docstr_tok: ["Dynamic","Time","Warping","(","DTW",")","Alignment",".","Attributes","--","--","--","--","--","n","The","length","of","`","series1","`","m","The","length","of","`","series2","`","series1","A","`","TimeSeries","`","to","align","with","`","series2","`",".","series2","A","`","TimeSeries","`","to","align","with","`","series1","`",".","cost","The","`","CostMatrix","`","for","DTW","."]
docstr: Gives the mean distance between pair-wise elements in the two series after warping.
  
  Returns
  -------
  float
      The mean distance between pair-wise elements in the two series after warping.
docstr_tok: ["Gives","the","mean","distance","between","pair-wise","elements","in","the","two","series","after","warping",".","Returns","--","--","--","-","float","The","mean","distance","between","pair-wise","elements","in","the","two","series","after","warping","."]
code: def mean_distance(self) -> float:
      """Gives the mean distance between pair-wise elements in the two series after warping.
  
      Returns
      -------
      float
          The mean distance between pair-wise elements in the two series after warping.
      """
      if hasattr(self, "_mean_distance"):
          return self._mean_distance
  
      path = self.path()
      self._mean_distance = self.distance() / len(path)
      return self._mean_distance
  
imports: import copy
  from typing import Callable, Optional, Union
  import numpy
  import pandas
  import xarray
  from darts import TimeSeries
  from darts.logging import get_logger, raise_if, raise_if_not
  from darts.timeseries import DIMS
  from .cost_matrix import CostMatrix
  from .window import CRWindow, NoWindow, Window
label_desc: Use image node_id 4 for calling the DTWAlignment obj's underlying member method code with example usage: obj.mean_distance() and returns: self, self