]> git.gag.com Git - debian/gnuradio/commitdiff
when gr_firdes.i was last touched, my version 2 filter design programs were removed...
authorn4hy <n4hy@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 1 Oct 2008 17:18:13 +0000 (17:18 +0000)
committern4hy <n4hy@221aa14e-8319-0410-a670-987f0aec2ac5>
Wed, 1 Oct 2008 17:18:13 +0000 (17:18 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9693 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/general/gr_firdes.h
gnuradio-core/src/lib/general/gr_firdes.i

index bb62dad8f4afd0cbafd6bee4136b0f2722b3c04c..7b30084d96b700b8e7d653e4c3471b9720fd7df8 100644 (file)
@@ -68,6 +68,21 @@ class gr_firdes {
            win_type window = WIN_HAMMING,
            double beta = 6.76);                // used only with Kaiser
 
+  /*!
+   * \brief use "window method" to design a low-pass FIR filter
+   *
+   * \p gain:                  overall gain of filter (typically 1.0)
+   * \p sampling_freq:         sampling freq (Hz)
+   * \p cutoff_freq:           center of transition band (Hz)
+   * \p transition_width:      width of transition band (Hz).
+   * \p attenuation_dB          required stopband attenuation
+   *                           The normalized width of the transition
+   *                           band is what sets the number of taps
+   *                           required.  Narrow --> more taps
+   * \p window_type:           What kind of window to use. Determines
+   *                           maximum attenuation and passband ripple.
+   * \p beta:                  parameter for Kaiser window
+   */
   static std::vector<float>
   low_pass_2 (double gain,
            double sampling_freq,
index 6fbe27f674240a960d6c42358b085985eba5fb6f..4ac9855d23d8e8dbb2c562b2b7bd73d0d6e4013f 100644 (file)
@@ -42,6 +42,31 @@ class gr_firdes {
            double beta = 6.76          // used only with Kaiser
            ) throw(std::out_of_range);
 
+  /*!
+   * \brief use "window method" to design a low-pass FIR filter
+   *  using alternative design criteria
+   * \p gain:                  overall gain of filter (typically 1.0)
+   * \p sampling_freq:         sampling freq (Hz)
+   * \p cutoff_freq:           center of transition band (Hz)
+   * \p transition_width:      width of transition band (Hz).
+   *                           The normalized width of the transition
+   *                           band is what sets the number of taps
+   *                           required.  Narrow --> more taps
+   * \p attenuation_dB          The required stop band attenuation in dB
+   * \p window_type:           What kind of window to use. Determines
+   *                           maximum attenuation and passband ripple.
+   * \p beta:                  parameter for Kaiser window
+   */
+  static std::vector<float>
+  low_pass_2 (double gain,
+           double sampling_freq,
+           double cutoff_freq,         // Hz center of transition band
+           double transition_width,    // Hz width of transition band
+           double attenuation_dB,       // out of band attenuation
+           win_type window = WIN_HAMMING,
+           double beta = 6.76          // used only with Kaiser
+           ) throw(std::out_of_range);
+
   /*!
    * \brief use "window method" to design a high-pass FIR filter
    *