gr::blocks::peak_detector2_fb
gr::sync_block
gnuradio/blocks/peak_detector2_fb.h
std::shared_ptr< peak_detector2_fb > std::shared_ptr<peak_detector2_fb> gr::blocks::peak_detector2_fb::sptr sptr gr::blocks::peak_detector2_fb::sptr
sptr static sptr gr::blocks::peak_detector2_fb::make (float threshold_factor_rise=7, int look_ahead=1000, float alpha=0.001) make gr::blocks::peak_detector2_fb::make float threshold_factor_rise 7 int look_ahead 1000 float alpha 0.001

Build a peak detector block with float in, byte out.

threshold_factor_rise

The threshold factor determines when a peak is present. An average of the input signal is calculated (through a single-pole autoregressive filter) and when the value of the input signal goes over threshold_factor_rise*average, we assume we are in the neighborhood of a peak. The block will then find the position of the maximum within a window of look_ahead samples starting at the point where the threshold was crossed upwards.

look_ahead

The look-ahead value is used when the threshold is crossed upwards to locate the peak within this range.

alpha

One minus the pole of a single-pole autoregressive filter that evaluates the average of the input signal.

void virtual void gr::blocks::peak_detector2_fb::set_threshold_factor_rise (float thr)=0 set_threshold_factor_rise gr::blocks::peak_detector2_fb::set_threshold_factor_rise float thr

Set the threshold factor value for the rise time.

thr

new threshold factor

void virtual void gr::blocks::peak_detector2_fb::set_look_ahead (int look)=0 set_look_ahead gr::blocks::peak_detector2_fb::set_look_ahead int look

Set the look-ahead factor.

look

new look-ahead factor

void virtual void gr::blocks::peak_detector2_fb::set_alpha (float alpha)=0 set_alpha gr::blocks::peak_detector2_fb::set_alpha float alpha

Set the running average alpha.

alpha

new alpha for running average

float virtual float gr::blocks::peak_detector2_fb::threshold_factor_rise ()=0 threshold_factor_rise gr::blocks::peak_detector2_fb::threshold_factor_rise

Get the threshold factor value for the rise time.

threshold factor

int virtual int gr::blocks::peak_detector2_fb::look_ahead ()=0 look_ahead gr::blocks::peak_detector2_fb::look_ahead

Get the look-ahead factor value.

look-ahead factor

float virtual float gr::blocks::peak_detector2_fb::alpha ()=0 alpha gr::blocks::peak_detector2_fb::alpha

Get the alpha value of the running average.

alpha

Detect the peak of a signal.

If a peak is detected, this block outputs a 1, or it outputs 0's. A separate debug output may be connected, to view the internal estimated mean described below.

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