GNU Radio 3.7.1 C++ API
gr::digital::constellation_calcdist Class Reference

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>

Inheritance diagram for gr::digital::constellation_calcdist:

List of all members.

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)

Detailed Description

Calculate Euclidian distance for any constellation

Constellation which calculates the distance to each point in the constellation for decision making. Inefficient for large constellations.


Member Typedef Documentation


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

Parameters:
constellList of constellation points (order of list matches pre_diff_code)
pre_diff_codeList of alphabet symbols (before applying any differential coding) (order of list matches constell)
rotational_symmetryNumber of rotations around unit circle that have the same representation.
dimensionalityNumber of dimensions to the constellation.

The documentation for this class was generated from the following file: