gr::blocks::moving_average
gr::sync_block
gnuradio/blocks/moving_average.h
class T
std::shared_ptr< moving_average< T > > std::shared_ptr<moving_average<T> > gr::blocks::moving_average< T >::sptr sptr gr::blocks::moving_average::sptr
sptr static sptr gr::blocks::moving_average< T >::make (int length, T scale, int max_iter=4096, unsigned int vlen=1) make gr::blocks::moving_average::make int length T scale int max_iter 4096 unsigned int vlen 1

Create a moving average block.

length

Number of samples to use in the average.

scale

scale factor for the result.

max_iter

limits how long we go without flushing the accumulator This is necessary to avoid numerical instability for float and complex.

vlen

When > 1, do a per-vector-element moving average

int virtual int gr::blocks::moving_average< T >::length () const =0 length gr::blocks::moving_average::length

Get the length used in the avaraging calculation.

T virtual T gr::blocks::moving_average< T >::scale () const =0 scale gr::blocks::moving_average::scale

Get the scale factor being used.

void virtual void gr::blocks::moving_average< T >::set_length_and_scale (int length, T scale)=0 set_length_and_scale gr::blocks::moving_average::set_length_and_scale int length T scale

Set both the length and the scale factor together.

void virtual void gr::blocks::moving_average< T >::set_length (int length)=0 set_length gr::blocks::moving_average::set_length int length

Set the length.

void virtual void gr::blocks::moving_average< T >::set_scale (T scale)=0 set_scale gr::blocks::moving_average::set_scale T scale

Set the scale factor.

output is the moving sum of the last N samples, scaled by the scale factor

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