GNU Radio 3.7.1-52 C++ API
|
Compares vectors from multiple streams and determines the index in the vector and stream number where the maximum value occurred. More...
#include <argmax_ss.h>
Public Types | |
typedef boost::shared_ptr < argmax_ss > | sptr |
Static Public Member Functions | |
static sptr | make (size_t vlen) |
Additional Inherited Members | |
![]() | |
virtual int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)=0 |
just like gr::block::general_work, only this arranges to call consume_each for you More... | |
void | forecast (int noutput_items, gr_vector_int &ninput_items_required) |
Estimate input requirements given output request. More... | |
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
compute output items from input items More... | |
int | fixed_rate_ninput_to_noutput (int ninput) |
Given ninput samples, return number of output samples that will be produced. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. More... | |
int | fixed_rate_noutput_to_ninput (int noutput) |
Given noutput samples, return number of input samples required to produce noutput. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. More... | |
![]() | |
enum | vcolor { WHITE, GREY, BLACK } |
![]() | |
sync_block (void) | |
sync_block (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature) | |
![]() | |
std::vector< long > | d_max_output_buffer |
std::vector< long > | d_min_output_buffer |
gr::thread::mutex | d_setlock |
gr::logger_ptr | d_logger |
gr::logger_ptr | d_debug_logger |
Compares vectors from multiple streams and determines the index in the vector and stream number where the maximum value occurred.
Data is passed in as a vector of length vlen
from multiple input sources. It will look through these streams of vlen
data items and output two streams. Stream 0 will contain the index value in the vector where the maximum value occurred. Stream 1 will contain the number of the input stream that held the maximum value.
|
static |