From 0bcc96fffa3a0101acd32d563300168b79f3f653 Mon Sep 17 00:00:00 2001 From: jopohl Date: Wed, 20 Apr 2016 06:45:22 +0200 Subject: [PATCH] fix #5 --- src/urh/signalprocessing/Modulator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/urh/signalprocessing/Modulator.py b/src/urh/signalprocessing/Modulator.py index 5fe821dd..10d7e233 100644 --- a/src/urh/signalprocessing/Modulator.py +++ b/src/urh/signalprocessing/Modulator.py @@ -214,13 +214,11 @@ class Modulator(object): :return: """ # http://onlinelibrary.wiley.com/doi/10.1002/9780470041956.app2/pdf - k = range(-int(filter_width * self.samples_per_bit), int(filter_width * self.samples_per_bit)+1) + k = np.arange(-int(filter_width * self.samples_per_bit), int(filter_width * self.samples_per_bit)+1) ts = self.samples_per_bit / self.sample_rate # symbol time #a = np.sqrt(np.log(2)/2)*(ts/bt) #B = a / np.sqrt(np.log(2)/2) # filter bandwidth h = np.sqrt((2*np.pi)/(np.log(2))) * bt/ts * np.exp(-(((np.sqrt(2)*np.pi)/np.sqrt(np.log(2))*bt*k/self.samples_per_bit)**2)) - h5 = (bt*k/self.samples_per_bit) - # h6 = return h / h.sum() @staticmethod