summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authortrondeau2009-08-05 01:36:09 +0000
committertrondeau2009-08-05 01:36:09 +0000
commite0003f3fc2b49d52a647281af3695b386ec7d8bf (patch)
tree952a4e241b9f7b487ea9ad7a3e12655a81b6430f /gnuradio-core/src/lib/general
parentf6a400a8192ebee931ee45d712ffa889ba321234 (diff)
downloadgnuradio-e0003f3fc2b49d52a647281af3695b386ec7d8bf.tar.gz
gnuradio-e0003f3fc2b49d52a647281af3695b386ec7d8bf.tar.bz2
gnuradio-e0003f3fc2b49d52a647281af3695b386ec7d8bf.zip
Fixed optfir for producing equiripple FIR filters. Does LPF, fixes the HPF, and adds BPF (real).
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11537 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_remez.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_remez.cc b/gnuradio-core/src/lib/general/gr_remez.cc
index ca6df541b..86c2901b5 100644
--- a/gnuradio-core/src/lib/general/gr_remez.cc
+++ b/gnuradio-core/src/lib/general/gr_remez.cc
@@ -814,8 +814,10 @@ gr_remez (int order,
if (arg_bands[0] < 0 || arg_bands[arg_bands.size () - 1] > 1)
punt ("gr_remez: band edges must be in the range [0,1]");
+ // Divide by 2 to fit with the implementation that uses a
+ // sample rate of [0, 0.5] instead of [0, 1.0]
for (int i = 0; i < 2 * numbands; i++)
- bands[i] = arg_bands[i] / 2; // FIXME why / 2?
+ bands[i] = arg_bands[i] / 2;
LOCAL_BUFFER (double, response, numbands * 2);
if (arg_response.size () != arg_bands.size ())