summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python/gnuradio/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/python/gnuradio/window.py')
-rw-r--r--gnuradio-core/src/python/gnuradio/window.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/gnuradio-core/src/python/gnuradio/window.py b/gnuradio-core/src/python/gnuradio/window.py
index e109a98920..4a1d0c5161 100644
--- a/gnuradio-core/src/python/gnuradio/window.py
+++ b/gnuradio-core/src/python/gnuradio/window.py
@@ -1,23 +1,23 @@
#
# Copyright 2004,2005,2009 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
'''
Routines for designing window functions.
@@ -54,7 +54,7 @@ def rate(fft_size):
def expn(fft_size):
math.log(2.0)/(midn(fft_size) + 1.0)
-
+
def hamming(fft_size):
window = []
for index in xrange(fft_size):
@@ -93,7 +93,7 @@ def bartlett(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman2(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -105,7 +105,7 @@ def blackman2(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman3(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -117,7 +117,7 @@ def blackman3(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman4(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -129,7 +129,7 @@ def blackman4(fft_size):
angle += freq
j -= 1
return window
-
+
def exponential(fft_size):
expsum = 1.0
window = [0 for i in range(fft_size)]