diff options
author | eb | 2006-12-04 23:39:26 +0000 |
---|---|---|
committer | eb | 2006-12-04 23:39:26 +0000 |
commit | 5f11df3a837bfe56013b9483e5d8dd931b1aaf4e (patch) | |
tree | 5d2ccb32fd01df25f34abd73832134c7d64d8c24 /gnuradio-core/src | |
parent | 050f4b33a597e3cb804f89173359bce4dc898f2a (diff) | |
download | gnuradio-5f11df3a837bfe56013b9483e5d8dd931b1aaf4e.tar.gz gnuradio-5f11df3a837bfe56013b9483e5d8dd931b1aaf4e.tar.bz2 gnuradio-5f11df3a837bfe56013b9483e5d8dd931b1aaf4e.zip |
fix for ticket:113 gr_firdes::band_reject
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4055 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_firdes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_firdes.cc b/gnuradio-core/src/lib/general/gr_firdes.cc index 994424edf..87724fcdf 100644 --- a/gnuradio-core/src/lib/general/gr_firdes.cc +++ b/gnuradio-core/src/lib/general/gr_firdes.cc @@ -272,7 +272,7 @@ gr_firdes::band_reject (double gain, for (int n = -M; n <= M; n++){ if (n == 0) - taps[n + M] = (1.0 + (fwT0 - fwT1)) / M_PI * w[n + M]; + taps[n + M] = 1.0 + ((fwT0 - fwT1) / M_PI * w[n + M]); else { taps[n + M] = (sin (n * fwT0) - sin (n * fwT1)) / (n * M_PI) * w[n + M]; } |