GNU Radio 3.7.1 C++ API
|
Rectangular digital constellationOnly implemented for 1-(complex)dimensional constellation. More...
#include <constellation.h>
Public Types | |
typedef boost::shared_ptr < constellation_expl_rect > | sptr |
Public Member Functions | |
~constellation_expl_rect () | |
Static Public Member Functions | |
static sptr | make (std::vector< gr_complex > constellation, std::vector< int > pre_diff_code, unsigned int rotational_symmetry, unsigned int real_sectors, unsigned int imag_sectors, float width_real_sectors, float width_imag_sectors, std::vector< unsigned int > sector_values) |
Protected Member Functions | |
constellation_expl_rect (std::vector< gr_complex > constellation, std::vector< int > pre_diff_code, unsigned int rotational_symmetry, unsigned int real_sectors, unsigned int imag_sectors, float width_real_sectors, float width_imag_sectors, std::vector< unsigned int > sector_values) | |
unsigned int | calc_sector_value (unsigned int sector) |
Rectangular digital constellation
Only implemented for 1-(complex)dimensional constellation.
Constellation space is divided into rectangular sectors. Each sector is associated with the nearest constellation point.
This class is different from constellation_rect in that the mapping from sector to constellation point is explicitly passed into the constructor as sector_values. Usually we do not need this, since we want each sector to be automatically mapped to the closest constellation point, however sometimes it's nice to have the flexibility.
Reimplemented from gr::digital::constellation_rect.
gr::digital::constellation_expl_rect::constellation_expl_rect | ( | std::vector< gr_complex > | constellation, |
std::vector< int > | pre_diff_code, | ||
unsigned int | rotational_symmetry, | ||
unsigned int | real_sectors, | ||
unsigned int | imag_sectors, | ||
float | width_real_sectors, | ||
float | width_imag_sectors, | ||
std::vector< unsigned int > | sector_values | ||
) | [protected] |
unsigned int gr::digital::constellation_expl_rect::calc_sector_value | ( | unsigned int | sector | ) | [inline, protected, virtual] |
Reimplemented from gr::digital::constellation_rect.
static sptr gr::digital::constellation_expl_rect::make | ( | std::vector< gr_complex > | constellation, |
std::vector< int > | pre_diff_code, | ||
unsigned int | rotational_symmetry, | ||
unsigned int | real_sectors, | ||
unsigned int | imag_sectors, | ||
float | width_real_sectors, | ||
float | width_imag_sectors, | ||
std::vector< unsigned int > | sector_values | ||
) | [static] |