From fdf6e7e882ac8d8b1c3bf1f9ac55dff4cb02a63e Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 16 Feb 2015 19:12:05 +0200 Subject: [PATCH] sampling: use raised cosine window. --- amodem/sampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amodem/sampling.py b/amodem/sampling.py index 576a7f5..aa21b9d 100644 --- a/amodem/sampling.py +++ b/amodem/sampling.py @@ -14,7 +14,7 @@ class Interpolator(object): N = resolution * width u = np.arange(-N, N, dtype=float) - window = (1 + np.cos(0.5 * np.pi * u / N)) / 2.0 # (Hann window) + window = np.cos(0.5 * np.pi * u / N) ** 2.0 # raised cosine h = np.sinc(u / resolution) * window self.filt = []