def init_size(self, n: int, m: int):
        """
        Called by dtw to initialize the window to a certain size.

        Parameters
        ----------
        n
            The width of the window, must be equal to the length of `series1` used for DTW
        m
            The height of the window, must be equal to the length of `series2` used for DTW
        """
        self.n = n
        self.m = m

        Called by dtw to initialize the window to a certain size.

        Parameters
        ----------
        n
            The width of the window, must be equal to the length of `series1` used for DTW
        m
            The height of the window, must be equal to the length of `series2` used for DTW
        
darts/dataprocessing/dtw/window.py