From cd5ba6abcbde55cfc86f59b427cf02f617500ad4 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 28 Aug 2014 17:20:59 +0300 Subject: [PATCH] remove unused code --- amodem/dsp.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/amodem/dsp.py b/amodem/dsp.py index b12554a..45a0d56 100644 --- a/amodem/dsp.py +++ b/amodem/dsp.py @@ -15,7 +15,6 @@ class Filter(object): self.x_state = [0] * len(self.b) self.y_state = [0] * (len(self.a) + 1) - def __call__(self, x): x_, y_ = self.x_state, self.y_state for v in x: @@ -138,10 +137,6 @@ class MODEM(object): ]) -def power(x): - return np.dot(x.conj(), x).real / len(x) - - def exp_iwt(freq, n): iwt = 2j * np.pi * freq * np.arange(n) * Ts return np.exp(iwt)