Remove redundant line

pull/14/head
Ewald de Wit 2022-09-14 20:51:57 +02:00
rodzic 05e36d8a15
commit 0161ef225f
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -286,7 +286,6 @@ def smooth(freq: np.ndarray, data: np.ndarray, smoothing: float) -> np.ndarray:
prev = data[-1]
for i, w in enumerate(np.flip(weight), 1):
smoothed[-i] = prev = (1 - w) * prev + w * data[-i]
prev = smoothed[0]
for i, w in enumerate(weight):
smoothed[i] = prev = (1 - w) * prev + w * smoothed[i]
return smoothed