GNU Radio 3.7.1 C++ API
|
Calculate Euclidian distance for any constellationConstellation which calculates the distance to each point in the constellation for decision making. Inefficient for large constellations. More...
#include <constellation.h>
Public Types | |
typedef boost::shared_ptr < constellation_calcdist > | sptr |
Public Member Functions | |
unsigned int | decision_maker (const gr_complex *sample) |
Returns the constellation point that matches best. | |
Static Public Member Functions | |
static sptr | make (std::vector< gr_complex > constell, std::vector< int > pre_diff_code, unsigned int rotational_symmetry, unsigned int dimensionality) |
Protected Member Functions | |
constellation_calcdist (std::vector< gr_complex > constell, std::vector< int > pre_diff_code, unsigned int rotational_symmetry, unsigned int dimensionality) |
Calculate Euclidian distance for any constellation
Constellation which calculates the distance to each point in the constellation for decision making. Inefficient for large constellations.
gr::digital::constellation_calcdist::constellation_calcdist | ( | std::vector< gr_complex > | constell, |
std::vector< int > | pre_diff_code, | ||
unsigned int | rotational_symmetry, | ||
unsigned int | dimensionality | ||
) | [protected] |
unsigned int gr::digital::constellation_calcdist::decision_maker | ( | const gr_complex * | sample | ) | [virtual] |
Returns the constellation point that matches best.
Implements gr::digital::constellation.
static sptr gr::digital::constellation_calcdist::make | ( | std::vector< gr_complex > | constell, |
std::vector< int > | pre_diff_code, | ||
unsigned int | rotational_symmetry, | ||
unsigned int | dimensionality | ||
) | [static] |
Make a general constellation object that calculates the Euclidean distance for hard decisions.
constell | List of constellation points (order of list matches pre_diff_code) |
pre_diff_code | List of alphabet symbols (before applying any differential coding) (order of list matches constell) |
rotational_symmetry | Number of rotations around unit circle that have the same representation. |
dimensionality | Number of dimensions to the constellation. |