diff --git a/hyperit/hyperit.py b/hyperit/hyperit.py index 3cdf341..4a3c1f8 100644 --- a/hyperit/hyperit.py +++ b/hyperit/hyperit.py @@ -427,8 +427,8 @@ def symb_calc_mi(X: np.ndarray, Y: np.ndarray, k: int, delay: int) -> float: def __delay_timeseries(self, lag: int) -> None: """ Only for Kernel TE which currently has no built-in delay function. Manually delay data2 by specified lag""" - newY = np.array(self._data1[..., lag:]) - newX = np.array(self._data2[..., :-lag]) + newY = np.array(self._data2[..., :-lag]) + newX = np.array(self._data1[..., lag:]) self._data1 = newX self._data2 = newY