gr::fec::code::repetition_decoder
gr::fec::generic_decoder
gnuradio/fec/repetition_decoder.h
generic_decoder::sptr static generic_decoder::sptr gr::fec::code::repetition_decoder::make (int frame_size, int rep, float ap_prob=0.5) make gr::fec::code::repetition_decoder::make int frame_size int rep float ap_prob 0.5

Build a repetition decoding FEC API object.

frame_size

Number of bits per frame. If using in the tagged stream style, this is the maximum allowable number of bits per frame.

rep

Repetition rate; encoder rate is rep bits out for each input bit.

ap_prob

The a priori probability that a bit is a 1 (generally, unless otherwise known, assume to be 0.5).

bool bool gr::fec::code::repetition_decoder::set_frame_size (unsigned int frame_size) override=0 set_frame_size gr::fec::code::repetition_decoder::set_frame_size set_frame_size unsigned int frame_size

Sets the uncoded frame size to `frame_size`. If `frame_size` is greater than the value given to the constructor, the frame size will be capped by that initial value and this function will return false. Otherwise, it returns true.

double double gr::fec::code::repetition_decoder::rate () override=0 rate gr::fec::code::repetition_decoder::rate rate

Returns the coding rate of this encoder (it will always be 1).

Repetition Decoding class.

A repetition decoder class. This takes a majority vote, biased by the `ap_prob` rate, and decides if the number of 1 bits > ap_prob, it is a 1; else, it is a 0.

gr::fec::code::repetition_decoder
gr::fec::generic_decoder
gr::fec::code::repetition_decoder
gr::fec::generic_decoder
d_logger
d_name
std::basic_string< Char >
std::shared_ptr< logger >
std::string
- gr::fec::code::repetition_decoder
  alias
- gr::fec::code::repetition_decoder
  base_unique_id
- gr::fec::code::repetition_decoder
  d_logger
- gr::fec::code::repetition_decoder
  d_name
- gr::fec::code::repetition_decoder
  generic_decoder
- gr::fec::code::repetition_decoder
  generic_decoder
- gr::fec::code::repetition_decoder
  generic_work
- gr::fec::code::repetition_decoder
  get_history
- gr::fec::code::repetition_decoder
  get_input_conversion
- gr::fec::code::repetition_decoder
  get_input_item_size
- gr::fec::code::repetition_decoder
  get_input_size
- gr::fec::code::repetition_decoder
  get_iterations
- gr::fec::code::repetition_decoder
  get_output_conversion
- gr::fec::code::repetition_decoder
  get_output_item_size
- gr::fec::code::repetition_decoder
  get_output_size
- gr::fec::code::repetition_decoder
  get_shift
- gr::fec::code::repetition_decoder
  make
- gr::fec::code::repetition_decoder
  my_id
- gr::fec::code::repetition_decoder
  rate
- gr::fec::code::repetition_decoder
  set_frame_size
- gr::fec::code::repetition_decoder
  sptr
- gr::fec::code::repetition_decoder
  unique_id
- gr::fec::code::repetition_decoder
  ~generic_decoder