[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/09: filter docs: add bt parameter to doc
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/09: filter docs: add bt parameter to docs for gaussian filter |
Date: |
Wed, 9 Mar 2016 15:50:51 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit c4b0d7c1f687e91da8a44093552041854e59f749
Author: Nathan West <address@hidden>
Date: Fri Mar 4 23:32:42 2016 -0500
filter docs: add bt parameter to docs for gaussian filter
---
gr-filter/include/gnuradio/filter/firdes.h | 7 ++++---
gr-filter/lib/firdes.cc | 10 +++++-----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/gr-filter/include/gnuradio/filter/firdes.h
b/gr-filter/include/gnuradio/filter/firdes.h
index 78540bd..1fca65a 100644
--- a/gr-filter/include/gnuradio/filter/firdes.h
+++ b/gr-filter/include/gnuradio/filter/firdes.h
@@ -348,9 +348,10 @@ namespace gr {
/*!
* \brief design a Gaussian filter
*
- * \p gain: overall gain of filter (typically 1.0)
- * \p symbols per bit: symbol rate, must be a factor of sample rate
- * \p ntaps: number of taps
+ * \p gain: overall gain of filter (typically 1.0)
+ * \p symbols/bit: symbol rate, must be a factor of sample rate
+ * \p bt: bandwidth to bitrate ratio
+ * \p ntaps: number of taps
*/
static std::vector<float>
gaussian(double gain,
diff --git a/gr-filter/lib/firdes.cc b/gr-filter/lib/firdes.cc
index 351eb7a..323de42 100644
--- a/gr-filter/lib/firdes.cc
+++ b/gr-filter/lib/firdes.cc
@@ -590,13 +590,13 @@ namespace gr {
double t0 = -0.5 * ntaps;
double ts;
for(int i=0;i<ntaps;i++) {
- t0++;
- ts = s*dt*t0;
- taps[i] = exp(-0.5*ts*ts);
- scale += taps[i];
+ t0++;
+ ts = s*dt*t0;
+ taps[i] = exp(-0.5*ts*ts);
+ scale += taps[i];
}
for(int i=0;i<ntaps;i++)
- taps[i] = taps[i] / scale * gain;
+ taps[i] = taps[i] / scale * gain;
return taps;
}
- [Commit-gnuradio] [gnuradio] branch maint updated (cf5ebff -> 0a1a76d), git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'nwest/filter-docs' into maint, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 07/09: CMake: Fix dummy command in UseSWIG.cmake, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 03/09: docs: change firdes::low_pass2 docs to match implementation comments, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 05/09: fft: replace fftwf_malloc with volk_malloc, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 04/09: grc: run flowgraphs even if bypassed blocks contain errors, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'nwest/fft-avx-alignment' into maint, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 06/09: fft: explicitly link to volk, git, 2016/03/09
- [Commit-gnuradio] [gnuradio] 01/09: filter docs: add bt parameter to docs for gaussian filter,
git <=
- [Commit-gnuradio] [gnuradio] 02/09: docs: reformat firdes docs to render nicely in doxygen, git, 2016/03/09