Changeset 9707
- Timestamp:
- 10/03/08 16:30:56
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/gnuradio-core/src/lib/general/gr_firdes.h
r9693 r9707 89 89 double cutoff_freq, // Hz beginning transition band 90 90 double transition_width, // Hz width of transition band 91 double attenuation_dB, //attenuation dB91 double attenuation_dB, // out of band attenuation dB 92 92 win_type window = WIN_HAMMING, 93 93 double beta = 6.76); // used only with Kaiser … … 107 107 * \p beta: parameter for Kaiser window 108 108 */ 109 109 110 static std::vector<float> 110 111 high_pass (double gain, … … 115 116 double beta = 6.76); // used only with Kaiser 116 117 118 /*! 119 * \brief use "window method" to design a high-pass FIR filter 120 * 121 * \p gain: overall gain of filter (typically 1.0) 122 * \p sampling_freq: sampling freq (Hz) 123 * \p cutoff_freq: center of transition band (Hz) 124 * \p transition_width: width of transition band (Hz). 125 * \p attenuation_dB out of band attenuation 126 * The normalized width of the transition 127 * band is what sets the number of taps 128 * required. Narrow --> more taps 129 * \p window_type: What kind of window to use. Determines 130 * maximum attenuation and passband ripple. 131 * \p beta: parameter for Kaiser window 132 */ 133 117 134 static std::vector<float> 118 135 high_pass_2 (double gain, … … 120 137 double cutoff_freq, // Hz center of transition band 121 138 double transition_width, // Hz width of transition band 122 double attenuation_dB, //attenuation dB139 double attenuation_dB, // out of band attenuation dB 123 140 win_type window = WIN_HAMMING, 124 141 double beta = 6.76); // used only with Kaiser … … 148 165 double beta = 6.76); // used only with Kaiser 149 166 167 /*! 168 * \brief use "window method" to design a band-pass FIR filter 169 * 170 * \p gain: overall gain of filter (typically 1.0) 171 * \p sampling_freq: sampling freq (Hz) 172 * \p low_cutoff_freq: center of transition band (Hz) 173 * \p high_cutoff_freq: center of transition band (Hz) 174 * \p transition_width: width of transition band (Hz). 175 * \p attenuation_dB out of band attenuation 176 * The normalized width of the transition 177 * band is what sets the number of taps 178 * required. Narrow --> more taps 179 * \p window_type: What kind of window to use. Determines 180 * maximum attenuation and passband ripple. 181 * \p beta: parameter for Kaiser window 182 */ 150 183 static std::vector<float> 151 184 band_pass_2 (double gain, … … 154 187 double high_cutoff_freq, // Hz beginning transition band 155 188 double transition_width, // Hz width of transition band 156 double attenuation_dB, //attenuation dB189 double attenuation_dB, // out of band attenuation dB 157 190 win_type window = WIN_HAMMING, 158 191 double beta = 6.76); // used only with Kaiser … … 183 216 double beta = 6.76); // used only with Kaiser 184 217 218 /*! 219 * \brief use "window method" to design a complex band-pass FIR filter 220 * 221 * \p gain: overall gain of filter (typically 1.0) 222 * \p sampling_freq: sampling freq (Hz) 223 * \p low_cutoff_freq: center of transition band (Hz) 224 * \p high_cutoff_freq: center of transition band (Hz) 225 * \p transition_width: width of transition band (Hz). 226 * \p attenuation_dB out of band attenuation 227 * The normalized width of the transition 228 * band is what sets the number of taps 229 * required. Narrow --> more taps 230 * \p window_type: What kind of window to use. Determines 231 * maximum attenuation and passband ripple. 232 * \p beta: parameter for Kaiser window 233 */ 234 185 235 static std::vector<gr_complex> 186 236 complex_band_pass_2 (double gain, … … 189 239 double high_cutoff_freq, // Hz beginning transition band 190 240 double transition_width, // Hz width of transition band 191 double attenuation_dB, // attenuation dB 192 win_type window = WIN_HAMMING, 193 double beta = 6.76); // used only with Kaiser 194 241 double attenuation_dB, // out of band attenuation dB 242 win_type window = WIN_HAMMING, 243 double beta = 6.76); // used only with Kaiser 195 244 196 245 /*! … … 219 268 double beta = 6.76); // used only with Kaiser 220 269 270 /*! 271 * \brief use "window method" to design a band-reject FIR filter 272 * 273 * \p gain: overall gain of filter (typically 1.0) 274 * \p sampling_freq: sampling freq (Hz) 275 * \p low_cutoff_freq: center of transition band (Hz) 276 * \p high_cutoff_freq: center of transition band (Hz) 277 * \p transition_width: width of transition band (Hz). 278 * \p attenuation_dB out of band attenuation 279 * The normalized width of the transition 280 * band is what sets the number of taps 281 * required. Narrow --> more taps 282 * \p window_type: What kind of window to use. Determines 283 * maximum attenuation and passband ripple. 284 * \p beta: parameter for Kaiser window 285 */ 286 221 287 static std::vector<float> 222 288 band_reject_2 (double gain, … … 225 291 double high_cutoff_freq, // Hz beginning transition band 226 292 double transition_width, // Hz width of transition band 227 double attenuation_dB, // attenuation dB293 double attenuation_dB, // out of band attenuation dB 228 294 win_type window = WIN_HAMMING, 229 295 double beta = 6.76); // used only with Kaiser gnuradio/trunk/gnuradio-core/src/lib/general/gr_firdes.i
r9693 r9707 50 50 * \p cutoff_freq: center of transition band (Hz) 51 51 * \p transition_width: width of transition band (Hz). 52 * \p attenuation_dB out of band attenuation 52 53 * The normalized width of the transition 53 54 * band is what sets the number of taps
