GNU Radio 3.7.1 C++ API
|
output[i] = map[input[i]] More...
#include <map_bb.h>
Public Types | |
typedef boost::shared_ptr< map_bb > | sptr |
Public Member Functions | |
virtual void | set_map (const std::vector< int > &map)=0 |
virtual std::vector< int > | map () const =0 |
Static Public Member Functions | |
static sptr | make (const std::vector< int > &map) |
output[i] = map[input[i]]
This block maps an incoming signal to the value in the map. The block expects that the incoming signal has a maximum value of len(map)-1.
-> output[i] = map[input[i]]
static sptr gr::digital::map_bb::make | ( | const std::vector< int > & | map | ) | [static] |
Make a map block.
map | a vector of integers that maps x to map[x]. |
virtual std::vector<int> gr::digital::map_bb::map | ( | ) | const [pure virtual] |
virtual void gr::digital::map_bb::set_map | ( | const std::vector< int > & | map | ) | [pure virtual] |