gr::filter::pfb_decimator_ccf
gr::sync_block
gnuradio/filter/pfb_decimator_ccf.h
std::shared_ptr< pfb_decimator_ccf > std::shared_ptr<pfb_decimator_ccf> gr::filter::pfb_decimator_ccf::sptr sptr gr::filter::pfb_decimator_ccf::sptr
sptr static sptr gr::filter::pfb_decimator_ccf::make (unsigned int decim, const std::vector< float > &taps, unsigned int channel, bool use_fft_rotator=true, bool use_fft_filters=true) make gr::filter::pfb_decimator_ccf::make unsigned int decim const std::vector< float > & taps unsigned int channel bool use_fft_rotator true bool use_fft_filters true

Build the polyphase filterbank decimator. decim

(unsigned integer) Specifies the decimation rate to use

taps

(vector/list of floats) The prototype filter to populate the filterbank.

channel

(unsigned integer) Selects the channel to return [default=0].

use_fft_rotator

(bool) Rotate channels using FFT method instead of exp(phi). For larger values of `channel`, the FFT method will perform better. Generally, this value of `channel` is small (~5), but could be architecture-specific (Default: true).

use_fft_filters

(bool) Use FFT filters (fast convolution) instead of FIR filters. FFT filters perform better for larger numbers of taps but is architecture-specific (Default: true).

void virtual void gr::filter::pfb_decimator_ccf::set_taps (const std::vector< float > &taps)=0 set_taps gr::filter::pfb_decimator_ccf::set_taps const std::vector< float > & taps

Resets the filterbank's filter taps with the new prototype filter taps

(vector/list of floats) The prototype filter to populate the filterbank.

std::vector< std::vector< float > > virtual std::vector< std::vector< float > > gr::filter::pfb_decimator_ccf::taps () const =0 taps gr::filter::pfb_decimator_ccf::taps

Return a vector<vector<>> of the filterbank taps

void virtual void gr::filter::pfb_decimator_ccf::print_taps ()=0 print_taps gr::filter::pfb_decimator_ccf::print_taps

Print all of the filterbank taps to screen.

void virtual void gr::filter::pfb_decimator_ccf::set_channel (const unsigned int channel)=0 set_channel gr::filter::pfb_decimator_ccf::set_channel const unsigned int channel

Polyphase filterbank bandpass decimator with gr_complex input, gr_complex output and float taps.

This block takes in a signal stream and performs integer down- sampling (decimation) with a polyphase filterbank. The first input is the integer specifying how much to decimate by. The second input is a vector (Python list) of floating-point taps of the prototype filter. The third input specifies the channel to extract. By default, the zeroth channel is used, which is the baseband channel (first Nyquist zone).

The channel parameter specifies which channel to use since this class is capable of bandpass decimation. Given a complex input stream at a sampling rate of fs and a decimation rate of decim, the input frequency domain is split into decim channels that represent the Nyquist zones. Using the polyphase filterbank, we can select any one of these channels to decimate.

The output signal will be the basebanded and decimated signal from that channel. This concept is very similar to the PFB channelizer (see gr::filter::pfb_channelizer_ccf) where only a single channel is extracted at a time.

The filter's taps should be based on the sampling rate before decimation.

For example, using the GNU Radio's firdes utility to building filters, we build a low-pass filter with a sampling rate of fs, a 3-dB bandwidth of BW and a transition bandwidth of TB. We can also specify the out-of-band attenuation to use, ATT, and the filter window function (a Blackman-harris window in this case). The first input is the gain of the filter, which we specify here as unity.

self._taps = filter.firdes.low_pass_2(1, fs, BW, TB, attenuation_dB=ATT, window=fft.window.WIN_BLACKMAN_hARRIS)

The PFB decimator code takes the taps generated above and builds a set of filters. The set contains decim filters and each filter contains ceil(taps.size()/decim) taps. Each tap from the filter prototype is sequentially inserted into the next filter. When all of the input taps are used, the remaining filters in the filterbank are filled out with 0's to make sure each filter has the same number of taps.

The theory behind this block can be found in Chapter 6 of the following book:

f. harris, "Multirate Signal Processing for Communication Systems," Upper Saddle River, NJ: Prentice Hall, Inc. 2004.

gr::basic_block
gr::block
gr::filter::pfb_decimator_ccf
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
std::enable_shared_from_this< basic_block >
T
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::filter::pfb_decimator_ccf
gr::io_signature
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
std::basic_string< Char >
std::deque< T >
elements
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
keys
elements
std::shared_ptr< T >
ptr
std::shared_ptr< io_signature >
ptr
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::string
std::vector< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::filter::pfb_decimator_ccf
  _post
- gr::filter::pfb_decimator_ccf
  active_thread_priority
- gr::filter::pfb_decimator_ccf
  add_item_tag
- gr::filter::pfb_decimator_ccf
  add_item_tag
- gr::filter::pfb_decimator_ccf
  alias
- gr::filter::pfb_decimator_ccf
  alias_pmt
- gr::filter::pfb_decimator_ccf
  alias_set
- gr::filter::pfb_decimator_ccf
  alignment
- gr::filter::pfb_decimator_ccf
  allocate_buffer
- gr::filter::pfb_decimator_ccf
  allocate_detail
- gr::filter::pfb_decimator_ccf
  basic_block
- gr::filter::pfb_decimator_ccf
  basic_block
- gr::filter::pfb_decimator_ccf
  BLACK
- gr::filter::pfb_decimator_ccf
  blkd_input_timer_value
- gr::filter::pfb_decimator_ccf
  block
- gr::filter::pfb_decimator_ccf
  block
- gr::filter::pfb_decimator_ccf
  check_topology
- gr::filter::pfb_decimator_ccf
  clear_finished
- gr::filter::pfb_decimator_ccf
  color
- gr::filter::pfb_decimator_ccf
  consume
- gr::filter::pfb_decimator_ccf
  consume_each
- gr::filter::pfb_decimator_ccf
  d_blkd_input_timer_value
- gr::filter::pfb_decimator_ccf
  d_color
- gr::filter::pfb_decimator_ccf
  d_debug_logger
- gr::filter::pfb_decimator_ccf
  d_input_signature
- gr::filter::pfb_decimator_ccf
  d_logger
- gr::filter::pfb_decimator_ccf
  d_max_output_buffer
- gr::filter::pfb_decimator_ccf
  d_message_subscribers
- gr::filter::pfb_decimator_ccf
  d_min_output_buffer
- gr::filter::pfb_decimator_ccf
  d_name
- gr::filter::pfb_decimator_ccf
  d_output_signature
- gr::filter::pfb_decimator_ccf
  d_pmt_done
- gr::filter::pfb_decimator_ccf
  d_rpc_set
- gr::filter::pfb_decimator_ccf
  d_rpc_vars
- gr::filter::pfb_decimator_ccf
  d_setlock
- gr::filter::pfb_decimator_ccf
  d_symbol_alias
- gr::filter::pfb_decimator_ccf
  d_symbol_name
- gr::filter::pfb_decimator_ccf
  d_symbolic_id
- gr::filter::pfb_decimator_ccf
  d_system_port
- gr::filter::pfb_decimator_ccf
  d_unique_id
- gr::filter::pfb_decimator_ccf
  declare_sample_delay
- gr::filter::pfb_decimator_ccf
  declare_sample_delay
- gr::filter::pfb_decimator_ccf
  delete_head_nowait
- gr::filter::pfb_decimator_ccf
  detail
- gr::filter::pfb_decimator_ccf
  dispatch_msg
- gr::filter::pfb_decimator_ccf
  empty_handled_p
- gr::filter::pfb_decimator_ccf
  empty_handled_p
- gr::filter::pfb_decimator_ccf
  empty_p
- gr::filter::pfb_decimator_ccf
  empty_p
- gr::filter::pfb_decimator_ccf
  enable_update_rate
- gr::filter::pfb_decimator_ccf
  erase_msg
- gr::filter::pfb_decimator_ccf
  expand_minmax_buffer
- gr::filter::pfb_decimator_ccf
  finished
- gr::filter::pfb_decimator_ccf
  fixed_rate
- gr::filter::pfb_decimator_ccf
  fixed_rate_ninput_to_noutput
- gr::filter::pfb_decimator_ccf
  fixed_rate_noutput_to_ninput
- gr::filter::pfb_decimator_ccf
  forecast
- gr::filter::pfb_decimator_ccf
  general_work
- gr::filter::pfb_decimator_ccf
  get_iterator
- gr::filter::pfb_decimator_ccf
  get_msg_map
- gr::filter::pfb_decimator_ccf
  get_tags_in_range
- gr::filter::pfb_decimator_ccf
  get_tags_in_range
- gr::filter::pfb_decimator_ccf
  get_tags_in_window
- gr::filter::pfb_decimator_ccf
  get_tags_in_window
- gr::filter::pfb_decimator_ccf
  GREY
- gr::filter::pfb_decimator_ccf
  has_msg_handler
- gr::filter::pfb_decimator_ccf
  has_msg_port
- gr::filter::pfb_decimator_ccf
  history
- gr::filter::pfb_decimator_ccf
  identifier
- gr::filter::pfb_decimator_ccf
  input_signature
- gr::filter::pfb_decimator_ccf
  insert_tail
- gr::filter::pfb_decimator_ccf
  is_pc_rpc_set
- gr::filter::pfb_decimator_ccf
  is_rpc_set
- gr::filter::pfb_decimator_ccf
  is_set_max_noutput_items
- gr::filter::pfb_decimator_ccf
  is_unaligned
- gr::filter::pfb_decimator_ccf
  log_level
- gr::filter::pfb_decimator_ccf
  make
- gr::filter::pfb_decimator_ccf
  max_noutput_items
- gr::filter::pfb_decimator_ccf
  max_output_buffer
- gr::filter::pfb_decimator_ccf
  message_port_is_hier
- gr::filter::pfb_decimator_ccf
  message_port_is_hier_in
- gr::filter::pfb_decimator_ccf
  message_port_is_hier_out
- gr::filter::pfb_decimator_ccf
  message_port_pub
- gr::filter::pfb_decimator_ccf
  message_port_register_in
- gr::filter::pfb_decimator_ccf
  message_port_register_out
- gr::filter::pfb_decimator_ccf
  message_port_sub
- gr::filter::pfb_decimator_ccf
  message_port_unsub
- gr::filter::pfb_decimator_ccf
  message_ports_in
- gr::filter::pfb_decimator_ccf
  message_ports_out
- gr::filter::pfb_decimator_ccf
  message_subscribers
- gr::filter::pfb_decimator_ccf
  min_noutput_items
- gr::filter::pfb_decimator_ccf
  min_output_buffer
- gr::filter::pfb_decimator_ccf
  mp_relative_rate
- gr::filter::pfb_decimator_ccf
  msg_accepter
- gr::filter::pfb_decimator_ccf
  msg_queue
- gr::filter::pfb_decimator_ccf
  name
- gr::filter::pfb_decimator_ccf
  nitems_read
- gr::filter::pfb_decimator_ccf
  nitems_written
- gr::filter::pfb_decimator_ccf
  nmsgs
- gr::filter::pfb_decimator_ccf
  no_pc_rpc
- gr::filter::pfb_decimator_ccf
  notify_msg_neighbors
- gr::filter::pfb_decimator_ccf
  output_multiple
- gr::filter::pfb_decimator_ccf
  output_multiple_set
- gr::filter::pfb_decimator_ccf
  output_signature
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full_avg
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full_avg
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full_var
- gr::filter::pfb_decimator_ccf
  pc_input_buffers_full_var
- gr::filter::pfb_decimator_ccf
  pc_noutput_items
- gr::filter::pfb_decimator_ccf
  pc_noutput_items_avg
- gr::filter::pfb_decimator_ccf
  pc_noutput_items_var
- gr::filter::pfb_decimator_ccf
  pc_nproduced
- gr::filter::pfb_decimator_ccf
  pc_nproduced_avg
- gr::filter::pfb_decimator_ccf
  pc_nproduced_var
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full_avg
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full_avg
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full_var
- gr::filter::pfb_decimator_ccf
  pc_output_buffers_full_var
- gr::filter::pfb_decimator_ccf
  pc_throughput_avg
- gr::filter::pfb_decimator_ccf
  pc_work_time
- gr::filter::pfb_decimator_ccf
  pc_work_time_avg
- gr::filter::pfb_decimator_ccf
  pc_work_time_total
- gr::filter::pfb_decimator_ccf
  pc_work_time_var
- gr::filter::pfb_decimator_ccf
  post
- gr::filter::pfb_decimator_ccf
  print_taps
- gr::filter::pfb_decimator_ccf
  processor_affinity
- gr::filter::pfb_decimator_ccf
  produce
- gr::filter::pfb_decimator_ccf
  relative_rate
- gr::filter::pfb_decimator_ccf
  relative_rate_d
- gr::filter::pfb_decimator_ccf
  relative_rate_i
- gr::filter::pfb_decimator_ccf
  remove_item_tag
- gr::filter::pfb_decimator_ccf
  remove_item_tag
- gr::filter::pfb_decimator_ccf
  replace_buffer
- gr::filter::pfb_decimator_ccf
  reset_perf_counters
- gr::filter::pfb_decimator_ccf
  rpc_set
- gr::filter::pfb_decimator_ccf
  sample_delay
- gr::filter::pfb_decimator_ccf
  set_alignment
- gr::filter::pfb_decimator_ccf
  set_blkd_input_timer_value
- gr::filter::pfb_decimator_ccf
  set_block_alias
- gr::filter::pfb_decimator_ccf
  set_channel
- gr::filter::pfb_decimator_ccf
  set_color
- gr::filter::pfb_decimator_ccf
  set_detail
- gr::filter::pfb_decimator_ccf
  set_fixed_rate
- gr::filter::pfb_decimator_ccf
  set_history
- gr::filter::pfb_decimator_ccf
  set_input_signature
- gr::filter::pfb_decimator_ccf
  set_inverse_relative_rate
- gr::filter::pfb_decimator_ccf
  set_is_unaligned
- gr::filter::pfb_decimator_ccf
  set_log_level
- gr::filter::pfb_decimator_ccf
  set_max_noutput_items
- gr::filter::pfb_decimator_ccf
  set_max_output_buffer
- gr::filter::pfb_decimator_ccf
  set_max_output_buffer
- gr::filter::pfb_decimator_ccf
  set_min_noutput_items
- gr::filter::pfb_decimator_ccf
  set_min_output_buffer
- gr::filter::pfb_decimator_ccf
  set_min_output_buffer
- gr::filter::pfb_decimator_ccf
  set_msg_handler
- gr::filter::pfb_decimator_ccf
  set_output_multiple
- gr::filter::pfb_decimator_ccf
  set_output_signature
- gr::filter::pfb_decimator_ccf
  set_processor_affinity
- gr::filter::pfb_decimator_ccf
  set_relative_rate
- gr::filter::pfb_decimator_ccf
  set_relative_rate
- gr::filter::pfb_decimator_ccf
  set_tag_propagation_policy
- gr::filter::pfb_decimator_ccf
  set_taps
- gr::filter::pfb_decimator_ccf
  set_thread_priority
- gr::filter::pfb_decimator_ccf
  set_unaligned
- gr::filter::pfb_decimator_ccf
  setup_pc_rpc
- gr::filter::pfb_decimator_ccf
  setup_rpc
- gr::filter::pfb_decimator_ccf
  shared_from_base
- gr::filter::pfb_decimator_ccf
  sptr
- gr::filter::pfb_decimator_ccf
  start
- gr::filter::pfb_decimator_ccf
  stop
- gr::filter::pfb_decimator_ccf
  symbol_name
- gr::filter::pfb_decimator_ccf
  symbolic_id
- gr::filter::pfb_decimator_ccf
  sync_block
- gr::filter::pfb_decimator_ccf
  sync_block
- gr::filter::pfb_decimator_ccf
  system_handler
- gr::filter::pfb_decimator_ccf
  tag_propagation_policy
- gr::filter::pfb_decimator_ccf
  tag_propagation_policy_t
- gr::filter::pfb_decimator_ccf
  taps
- gr::filter::pfb_decimator_ccf
  thread_priority
- gr::filter::pfb_decimator_ccf
  to_basic_block
- gr::filter::pfb_decimator_ccf
  TPP_ALL_TO_ALL
- gr::filter::pfb_decimator_ccf
  TPP_CUSTOM
- gr::filter::pfb_decimator_ccf
  TPP_DONT
- gr::filter::pfb_decimator_ccf
  TPP_ONE_TO_ONE
- gr::filter::pfb_decimator_ccf
  unaligned
- gr::filter::pfb_decimator_ccf
  unique_id
- gr::filter::pfb_decimator_ccf
  unset_max_noutput_items
- gr::filter::pfb_decimator_ccf
  unset_processor_affinity
- gr::filter::pfb_decimator_ccf
  update_rate
- gr::filter::pfb_decimator_ccf
  vcolor
- gr::filter::pfb_decimator_ccf
  WHITE
- gr::filter::pfb_decimator_ccf
  work
- gr::filter::pfb_decimator_ccf
  WORK_CALLED_PRODUCE
- gr::filter::pfb_decimator_ccf
  WORK_DONE
- gr::filter::pfb_decimator_ccf
  work_return_t
- gr::filter::pfb_decimator_ccf
  ~basic_block
- gr::filter::pfb_decimator_ccf
  ~block
- gr::filter::pfb_decimator_ccf
  ~msg_accepter