IT++ Logo
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | Related Functions | List of all members
itpp::Modulator_NRD Class Reference

Base class for N-dimensional vector (MIMO) channel modulators/demodulators with real-valued components. More...

#include <itpp/comm/modulator_nd.h>

Inheritance diagram for itpp::Modulator_NRD:
itpp::Modulator_ND itpp::ND_UPAM

Public Types

enum  Soft_Demod_Method { FULL_ENUM_LOGMAP , FULL_ENUM_MAXLOG , ZF_LOGMAP }
 Soft demodulation method. More...
 

Public Member Functions

 Modulator_NRD ()
 Constructor. More...
 
virtual ~Modulator_NRD ()
 Destructor. More...
 
Array< vec > get_symbols () const
 Get modulation symbols per dimension. More...
 
void modulate_bits (const bvec &bits, vec &symbols) const
 Modulate bits into symbols. More...
 
vec modulate_bits (const bvec &bits) const
 Modulate bits vector. Symbols are returned. More...
 
void init_soft_demodulator (const itpp::mat &H, const double &sigma2)
 Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points. More...
 
void demodulate_soft_bits (const vec &y, const QLLRvec &LLR_apriori, QLLRvec &LLR_aposteriori, Soft_Demod_Method method=FULL_ENUM_LOGMAP)
 Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points. More...
 
void demodulate_soft_bits (const vec &y, const mat &H, double sigma2, const QLLRvec &LLR_apriori, QLLRvec &LLR_aposteriori, Soft_Demod_Method method=FULL_ENUM_LOGMAP)
 Soft demodulation wrapper function for various methods. More...
 
QLLRvec demodulate_soft_bits (const vec &y, const mat &H, double sigma2, const QLLRvec &LLR_apriori, Soft_Demod_Method method=FULL_ENUM_LOGMAP)
 Soft demodulation wrapper function for various methods. More...
 
void demodulate_soft_bits (const vec &y, const vec &h, double sigma2, const QLLRvec &LLR_apriori, QLLRvec &LLR_aposteriori)
 Soft MAP demodulation for parallelchannels without crosstalk. More...
 
void set_llrcalc (LLR_calc_unit llrcalc_in)
 Set LLR calculation unit. More...
 
LLR_calc_unit get_llrcalc () const
 Get LLR calculation unit. More...
 
int get_dim () const
 Get number of dimensions. More...
 
ivec get_k () const
 Get number of bits per modulation symbol per dimension. More...
 
ivec bits_per_symbol () const
 Get number of bits per modulation symbol per dimension. More...
 
ivec get_M () const
 Get number of modulation symbols per dimension. More...
 
Array< ivec > get_bits2symbols () const
 Get bit pattern in decimal. More...
 
Array< bmatget_bitmap () const
 Get Bit mapping table. More...
 

Protected Member Functions

void update_norm (double &norm, int k, int sold, int snew, const vec &ytH, const mat &HtH, const ivec &s)
 Update residual norm (for internal use). More...
 
void hxnormupdate (itpp::vec &Hx, unsigned &bitstring, unsigned &ind, unsigned bit)
 Calculation of the part of the norms that depends on H. More...
 
void yxnormupdate (double &yx, itpp::QLLR &lapr, unsigned &bitstring, unsigned &ind, unsigned bit)
 Calculation of the remaining part of the norms that depends both on H and y. More...
 
QLLRvec probabilities (QLLR l)
 Convert LLR to log-probabilities. More...
 
Array< QLLRvec > probabilities (const QLLRvec &l)
 Convert LLR to log-probabilities, vector version. More...
 
void marginalize_bits (itpp::QLLRvec &llr, Soft_Demod_Method method) const
 Marginalize (sum) over the bits. More...
 
void demodllrbit0 (itpp::QLLR &llr) const
 Hardcoded implementation of 1:st bit demodulation. More...
 
void demodllrbit1 (itpp::QLLR &llr) const
 Hardcoded implementation of 2:nd bit demodulation. More...
 
void demodllrbit2 (itpp::QLLR &llr) const
 Hardcoded implementation of 3:rd bit demodulation. More...
 
void demodmaxbit0 (itpp::QLLR &maxllr) const
 Hardcoded implementation of 1:st bit demodulation. More...
 
void demodmaxbit1 (itpp::QLLR &maxllr) const
 Hardcoded implementation of 2:nd bit demodulation. More...
 
void demodmaxbit2 (itpp::QLLR &maxllr) const
 Hardcoded implementation of 3:rd bit demodulation. More...
 
void update_LLR (const Array< QLLRvec > &logP_apriori, const ivec &s, QLLR scaled_norm, QLLRvec &num, QLLRvec &denom)
 Update LLR (for internal use) More...
 
void update_LLR (const Array< QLLRvec > &logP_apriori, int s, QLLR scaled_norm, int j, QLLRvec &num, QLLRvec &denom)
 Update LLR, for scalar channel (for internal use) More...
 

Protected Attributes

Array< vec > symbols
 Vectors of modulation symbols (along each dimension) More...
 
itpp::mat H
 Real channel matrix. More...
 
itpp::Array< itpp::Array< itpp::vec > > hspacings
 The spacing between different constellation points multiplied by the different H columns. More...
 
itpp::Array< itpp::vec > yspacings
 The spacing between different constellation points scaled by different y elements. More...
 
int nt
 Number of dimensions. More...
 
int nb
 Number of bits in the symbol vector. More...
 
LLR_calc_unit llrcalc
 LLR calculation unit. More...
 
ivec k
 Number of bits per modulation symbol. More...
 
ivec M
 Number of modulation symbols along each dimension. More...
 
bool demod_initialized
 Flag indicating whether the demodulator has been initialized. More...
 
Array< bmatbitmap
 Bit mapping table (one table per dimension) More...
 
Array< ivec > bits2symbols
 Bit pattern in decimal form ordered and the corresponding symbols (one pattern per dimension) More...
 
double gaussnorm
 The normalization factor in the exponent (in front of the square norm) in the Gaussian distribution. More...
 
itpp::vec hnorms
 Norms part dependent on H. More...
 
itpp::QLLRvec Qnorms
 Norms part depending on both H and y. More...
 
itpp::QLLRvec llrapr
 A prioi information. More...
 
itpp::ivec bpos2cpos
 The bit to column mapping. More...
 
itpp::ivec bitcumsum
 The cumulative sum of bits in the symbol vector. More...
 
itpp::Array< itpp::Vec< unsigned > > gray2dec
 The Gray to decimal mapping. More...
 

Friends

ITPP_EXPORT std::ostream & operator<< (std::ostream &os, const Modulator_NRD &m)
 Output some properties of the MIMO modulator (mainly to aid debugging) More...
 

Related Functions

(Note that these are not member functions.)

ITPP_EXPORT std::ostream & operator<< (std::ostream &os, const Modulator_NRD &m)
 Print some properties of the MIMO modulator (mainly to aid debugging) More...
 

Detailed Description

Base class for N-dimensional vector (MIMO) channel modulators/demodulators with real-valued components.

This class can be used to perform modulation and demodulation for a matrix (MIMO) channel of the form

\[ y = Hx+e \]

, where H is the channel matrix of dimension $n_r\times n_t$, $y$ is a received vector of length $n_r$, $x$ is a transmitted vector of length $n_t$ and $e$ is a noise vector.

The class supports soft-input soft-output demodulation. It can also be used for scalar modulation to take advantage of this feature.

Complex MIMO channels can be handled by using the Modulator_NCD class. Alternatively, if the signal constellation is separable in I/Q then the complex channel can be first transformed to a real channel

\[
G = \left[ \begin{array}{cc} H_r & -H_i \\ H_i & H_r \end{array} \right]
\]

See ND_UPAM for examples.

Note
For issues relating to the accuracy of LLR computations, please see the documentation of LLR_calc_unit

Definition at line 248 of file modulator_nd.h.

Member Enumeration Documentation

◆ Soft_Demod_Method

Soft demodulation method.

Enumerator
FULL_ENUM_LOGMAP 

Log-MAP demodulation by "brute-force" enumeration of all points.

FULL_ENUM_MAXLOG 

Max-Log demodulation by "brute-force" enumeration of all points.

ZF_LOGMAP 

Zero-Forcing Log-MAP approximated demodulation.

Definition at line 67 of file modulator_nd.h.

Constructor & Destructor Documentation

◆ Modulator_NRD()

itpp::Modulator_NRD::Modulator_NRD ( )
inline

Constructor.

Definition at line 252 of file modulator_nd.h.

◆ ~Modulator_NRD()

virtual itpp::Modulator_NRD::~Modulator_NRD ( )
inlinevirtual

Destructor.

Definition at line 254 of file modulator_nd.h.

Member Function Documentation

◆ get_symbols()

Array< vec > itpp::Modulator_NRD::get_symbols ( ) const

Get modulation symbols per dimension.

Definition at line 452 of file modulator_nd.cpp.

References it_assert, itpp::Array< T >::left(), itpp::Array< T >::length(), itpp::Modulator_ND::M, itpp::Modulator_ND::nt, and symbols.

◆ modulate_bits() [1/2]

void itpp::Modulator_NRD::modulate_bits ( const bvec &  bits,
vec &  symbols 
) const

◆ modulate_bits() [2/2]

vec itpp::Modulator_NRD::modulate_bits ( const bvec &  bits) const

Modulate bits vector. Symbols are returned.

Definition at line 478 of file modulator_nd.cpp.

References modulate_bits(), and itpp::Modulator_ND::nt.

◆ init_soft_demodulator()

void itpp::Modulator_NRD::init_soft_demodulator ( const itpp::mat &  H,
const double &  sigma2 
)

Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points.

This function precomputes the norms

\[\frac{|Hs|^2}{2\sigma^2}\]

used to compute the LLR values

\[
LLR(k) = \log \left( \frac
{\sum_{s:b_k=0} \exp \left( -\frac{|y - Hs|^2}{2\sigma^2} \right) P(s)}
{\sum_{s:b_k=1} \exp \left( -\frac{|y - Hs|^2}{2\sigma^2} \right) P(s)}
\right)
\]

without approximations. It is assumed that H is real-valued. Complex-valued channels can be handled using the Modulator_NCD class.

Definition at line 486 of file modulator_nd.cpp.

References itpp::Modulator_ND::bitcumsum, itpp::Modulator_ND::bits2symbols, itpp::Modulator_ND::bpos2cpos, itpp::cumsum(), itpp::Modulator_ND::demod_initialized, itpp::Modulator_ND::gaussnorm, itpp::Modulator_ND::gray2dec, H, itpp::Modulator_ND::hnorms, hspacings, hxnormupdate(), it_assert, itpp::Modulator_ND::k, itpp::Modulator_ND::M, itpp::Modulator_ND::nb, itpp::Modulator_ND::nt, itpp::pow2i(), itpp::prod(), itpp::Modulator_ND::Qnorms, itpp::reverse(), itpp::Array< T >::set_size(), itpp::sum(), symbols, and yspacings.

Referenced by demodulate_soft_bits().

◆ demodulate_soft_bits() [1/4]

void itpp::Modulator_NRD::demodulate_soft_bits ( const vec &  y,
const QLLRvec &  LLR_apriori,
QLLRvec &  LLR_aposteriori,
Soft_Demod_Method  method = FULL_ENUM_LOGMAP 
)

Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points.

This function computes the LLR values

\[
LLR(k) = \log \left( \frac
{\sum_{s:b_k=0} \exp \left( -\frac{|y - Hs|^2}{2\sigma^2} \right) P(s)}
{\sum_{s:b_k=1} \exp \left( -\frac{|y - Hs|^2}{2\sigma^2} \right) P(s)}
\right)
\]

without approximations. It is assumed that H, y and s are real-valued. Complex-valued channels can be handled using the Modulator_NCD class. Currently the following two demodulation methods are supported:

  • FULL_ENUM_LOGMAP - exact demodulation, which use "brute-force" enumeration of all constellation points
  • FULL_ENUM_MAXLOG - max-log approximate demodulation, which use "brute-force" enumeration to find the constellation points that give the smallest euclidian distances
Parameters
[in]yReceived vector (typically $N_0/2$)
[in]LLR_aprioriVector of a priori LLR values per bit
[out]LLR_aposterioriVector of a posteriori LLR values
[in]methodSoft demodulation method

The function performs an exhaustive search over all possible points s in the n-dimensional constellation. This is only feasible for relatively small constellations. The Jacobian logarithm is used to compute the sum-exp expression.

References itpp::operator<<().

Referenced by demodulate_soft_bits().

◆ demodulate_soft_bits() [2/4]

void itpp::Modulator_NRD::demodulate_soft_bits ( const vec &  y,
const mat &  H,
double  sigma2,
const QLLRvec &  LLR_apriori,
QLLRvec &  LLR_aposteriori,
Soft_Demod_Method  method = FULL_ENUM_LOGMAP 
)

Soft demodulation wrapper function for various methods.

Currently the following three demodulation methods are supported:

  • FULL_ENUM_LOGMAP - exact demodulation, which use "brute-force" enumeration of all constellation points
  • FULL_ENUM_MAXLOG - max-log approximate demodulation, which use "brute-force" enumeration to find the constellation points that give the smallest euclidian distances
  • ZF_LOGMAP - approximated methods with Zero-Forcing preprocessing, which sometimes tends to perform poorly, especially for poorly conditioned H
Parameters
[in]yReceived vector
[in]HChannel matrix
[in]sigma2Noise variance per real dimension (typically $N_0/2$)
[in]LLR_aprioriVector of a priori LLR values per bit
[out]LLR_aposterioriVector of a posteriori LLR values
[in]methodSoft demodulation method

Definition at line 560 of file modulator_nd.cpp.

References demodulate_soft_bits(), H, init_soft_demodulator(), itpp::inv(), it_assert, itpp::Modulator_ND::k, itpp::ones(), itpp::sum(), itpp::zeros_i(), and itpp::Modulator_ND::ZF_LOGMAP.

◆ demodulate_soft_bits() [3/4]

QLLRvec itpp::Modulator_NRD::demodulate_soft_bits ( const vec &  y,
const mat &  H,
double  sigma2,
const QLLRvec &  LLR_apriori,
Soft_Demod_Method  method = FULL_ENUM_LOGMAP 
)

Soft demodulation wrapper function for various methods.

Currently the following two demodulation methods are supported:

  • FULL_ENUM_LOGMAP - exact demodulation, which use "brute-force" enumeration of all constellation points
  • ZF_LOGMAP - approximated methods with Zero-Forcing preprocessing, which sometimes tends to perform poorly, especially for poorly conditioned H
Parameters
[in]yReceived vector
[in]HChannel matrix
[in]sigma2Noise variance per real dimension (typically $N_0/2$)
[in]LLR_aprioriVector of a priori LLR values per bit
[in]methodSoft demodulation method
Returns
Vector of a posteriori LLR values

Definition at line 591 of file modulator_nd.cpp.

References demodulate_soft_bits(), and H.

◆ demodulate_soft_bits() [4/4]

void itpp::Modulator_NRD::demodulate_soft_bits ( const vec &  y,
const vec &  h,
double  sigma2,
const QLLRvec &  LLR_apriori,
QLLRvec &  LLR_aposteriori 
)

Soft MAP demodulation for parallelchannels without crosstalk.

This function is a much faster equivalent to demodulate_soft_bits with $H = \mbox{diag}(h)$. Its complexity is linear in the number of subchannels.

Definition at line 601 of file modulator_nd.cpp.

References it_assert, itpp::Modulator_ND::k, itpp::length(), itpp::Modulator_ND::llrcalc, itpp::Modulator_ND::M, itpp::Modulator_ND::nt, itpp::ones_i(), itpp::Modulator_ND::probabilities(), itpp::sqr(), itpp::sum(), symbols, itpp::LLR_calc_unit::to_qllr(), and itpp::Modulator_ND::update_LLR().

◆ update_norm()

void itpp::Modulator_NRD::update_norm ( double &  norm,
int  k,
int  sold,
int  snew,
const vec &  ytH,
const mat &  HtH,
const ivec &  s 
)
protected

Update residual norm (for internal use).

Update the residual norm $|y-Hs|$ when moving from one constellation point to an adjacent point.

Parameters
[in,out]normNorm to be updated
[in]kPosition where s changed
[in]soldOld value of s[k]
[in]snewNew value of s[k]
[in]ytHy'H vector
[in]HtHGrammian matrix H'H
[in]sSymbol vector

◆ hxnormupdate()

void itpp::Modulator_NRD::hxnormupdate ( itpp::vec &  Hx,
unsigned &  bitstring,
unsigned &  ind,
unsigned  bit 
)
protected

◆ yxnormupdate()

void itpp::Modulator_NRD::yxnormupdate ( double &  yx,
itpp::QLLR &  lapr,
unsigned &  bitstring,
unsigned &  ind,
unsigned  bit 
)
protected

◆ set_llrcalc()

void itpp::Modulator_ND::set_llrcalc ( LLR_calc_unit  llrcalc_in)
inlineinherited

Set LLR calculation unit.

Definition at line 83 of file modulator_nd.h.

◆ get_llrcalc()

LLR_calc_unit itpp::Modulator_ND::get_llrcalc ( ) const
inlineinherited

Get LLR calculation unit.

Definition at line 88 of file modulator_nd.h.

◆ get_dim()

int itpp::Modulator_ND::get_dim ( ) const
inlineinherited

Get number of dimensions.

Definition at line 93 of file modulator_nd.h.

◆ get_k()

ivec itpp::Modulator_ND::get_k ( ) const
inlineinherited

Get number of bits per modulation symbol per dimension.

Definition at line 98 of file modulator_nd.h.

◆ bits_per_symbol()

ivec itpp::Modulator_ND::bits_per_symbol ( ) const
inlineinherited

Get number of bits per modulation symbol per dimension.

Definition at line 103 of file modulator_nd.h.

◆ get_M()

ivec itpp::Modulator_ND::get_M ( ) const
inlineinherited

Get number of modulation symbols per dimension.

Definition at line 108 of file modulator_nd.h.

◆ get_bits2symbols()

Array< ivec > itpp::Modulator_ND::get_bits2symbols ( ) const
inlineinherited

Get bit pattern in decimal.

Definition at line 113 of file modulator_nd.h.

◆ get_bitmap()

Array< bmat > itpp::Modulator_ND::get_bitmap ( ) const
inlineinherited

Get Bit mapping table.

Definition at line 118 of file modulator_nd.h.

◆ probabilities() [1/2]

QLLRvec itpp::Modulator_ND::probabilities ( QLLR  l)
protectedinherited

◆ probabilities() [2/2]

Array< QLLRvec > itpp::Modulator_ND::probabilities ( const QLLRvec &  l)
protectedinherited

Convert LLR to log-probabilities, vector version.

Definition at line 437 of file modulator_nd.cpp.

References itpp::length(), and itpp::Modulator_ND::probabilities().

◆ marginalize_bits()

void itpp::Modulator_ND::marginalize_bits ( itpp::QLLRvec &  llr,
Soft_Demod_Method  method 
) const
protectedinherited

◆ demodllrbit0()

void itpp::Modulator_ND::demodllrbit0 ( itpp::QLLR &  llr) const
protectedinherited

Hardcoded implementation of 1:st bit demodulation.

Definition at line 203 of file modulator_nd.cpp.

References itpp::LLR_calc_unit::jaclog(), itpp::Modulator_ND::llrcalc, itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ demodllrbit1()

void itpp::Modulator_ND::demodllrbit1 ( itpp::QLLR &  llr) const
protectedinherited

Hardcoded implementation of 2:nd bit demodulation.

Definition at line 222 of file modulator_nd.cpp.

References itpp::LLR_calc_unit::jaclog(), itpp::Modulator_ND::llrcalc, itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ demodllrbit2()

void itpp::Modulator_ND::demodllrbit2 ( itpp::QLLR &  llr) const
protectedinherited

Hardcoded implementation of 3:rd bit demodulation.

Definition at line 250 of file modulator_nd.cpp.

References itpp::LLR_calc_unit::jaclog(), itpp::Modulator_ND::llrcalc, itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ demodmaxbit0()

void itpp::Modulator_ND::demodmaxbit0 ( itpp::QLLR &  maxllr) const
protectedinherited

Hardcoded implementation of 1:st bit demodulation.

Definition at line 294 of file modulator_nd.cpp.

References itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ demodmaxbit1()

void itpp::Modulator_ND::demodmaxbit1 ( itpp::QLLR &  maxllr) const
protectedinherited

Hardcoded implementation of 2:nd bit demodulation.

Definition at line 320 of file modulator_nd.cpp.

References itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ demodmaxbit2()

void itpp::Modulator_ND::demodmaxbit2 ( itpp::QLLR &  maxllr) const
protectedinherited

Hardcoded implementation of 3:rd bit demodulation.

Definition at line 362 of file modulator_nd.cpp.

References itpp::Modulator_ND::nb, and itpp::Modulator_ND::Qnorms.

Referenced by itpp::Modulator_ND::marginalize_bits().

◆ update_LLR() [1/2]

void itpp::Modulator_ND::update_LLR ( const Array< QLLRvec > &  logP_apriori,
const ivec &  s,
QLLR  scaled_norm,
QLLRvec &  num,
QLLRvec &  denom 
)
protectedinherited

Update LLR (for internal use)

This function updates the numerator and denominator in the expression

\[
\log \left( \frac {\sum_{s:b_k=0} \exp(-x^2) P(s)}
                  {\sum_{s:b_k=1} \exp(-x^2) P(s)} \right)
\]

Parameters
[in]logP_aprioriVector of a priori probabilities per bit
[in]sSymbol vector
[in]scaled_normArgument of the exponents in the above equation
[out]numLogarithm of the numerator in the above expression
[out]denomLogarithm of the denominator in the above expression

Definition at line 94 of file modulator_nd.cpp.

References itpp::Modulator_ND::bitmap, itpp::LLR_calc_unit::jaclog(), itpp::Modulator_ND::k, itpp::Modulator_ND::llrcalc, and itpp::Modulator_ND::nt.

Referenced by itpp::Modulator_NCD::demodulate_soft_bits(), and demodulate_soft_bits().

◆ update_LLR() [2/2]

void itpp::Modulator_ND::update_LLR ( const Array< QLLRvec > &  logP_apriori,
int  s,
QLLR  scaled_norm,
int  j,
QLLRvec &  num,
QLLRvec &  denom 
)
protectedinherited

Update LLR, for scalar channel (for internal use)

This function updates the numerator and denominator in the expression

\[
\log \left( \frac {\sum_{s:b_k=0} \exp (-x^2) P(s)}
                  {\sum_{s:b_k=1} \exp (-x^2) P(s)} \right)
\]

Parameters
[in]logP_aprioriVector of a priori probabilities per bit
[in]sSymbol
[in]scaled_normArgument of the exponents in the above equation
[in]jChannel index (dimension)
[out]numLogarithm of the numerator in the above expression
[out]denomLogarithm of the denominator in the above expression

Definition at line 68 of file modulator_nd.cpp.

References itpp::Modulator_ND::bitmap, itpp::LLR_calc_unit::jaclog(), itpp::Modulator_ND::k, and itpp::Modulator_ND::llrcalc.

Friends And Related Function Documentation

◆ operator<< [1/2]

ITPP_EXPORT std::ostream & operator<< ( std::ostream &  os,
const Modulator_NRD m 
)
friend

Output some properties of the MIMO modulator (mainly to aid debugging)

Definition at line 679 of file modulator_nd.cpp.

◆ operator<<() [2/2]

ITPP_EXPORT std::ostream & operator<< ( std::ostream &  os,
const Modulator_NRD m 
)
related

Print some properties of the MIMO modulator (mainly to aid debugging)

Definition at line 679 of file modulator_nd.cpp.

Member Data Documentation

◆ symbols

Array<vec> itpp::Modulator_NRD::symbols
protected

Vectors of modulation symbols (along each dimension)

Definition at line 390 of file modulator_nd.h.

Referenced by demodulate_soft_bits(), get_symbols(), init_soft_demodulator(), modulate_bits(), and itpp::ND_UPAM::set_M().

◆ H

itpp::mat itpp::Modulator_NRD::H
protected

Real channel matrix.

Definition at line 416 of file modulator_nd.h.

Referenced by demodulate_soft_bits(), init_soft_demodulator(), and itpp::ND_UPAM::sphere_decoding().

◆ hspacings

itpp::Array<itpp::Array<itpp::vec> > itpp::Modulator_NRD::hspacings
protected

The spacing between different constellation points multiplied by the different H columns.

Definition at line 418 of file modulator_nd.h.

Referenced by hxnormupdate(), and init_soft_demodulator().

◆ yspacings

itpp::Array<itpp::vec> itpp::Modulator_NRD::yspacings
protected

The spacing between different constellation points scaled by different y elements.

Definition at line 420 of file modulator_nd.h.

Referenced by init_soft_demodulator(), and yxnormupdate().

◆ nt

int itpp::Modulator_ND::nt
protectedinherited

◆ nb

int itpp::Modulator_ND::nb
protectedinherited

◆ llrcalc

LLR_calc_unit itpp::Modulator_ND::llrcalc
protectedinherited

◆ k

ivec itpp::Modulator_ND::k
protectedinherited

◆ M

ivec itpp::Modulator_ND::M
protectedinherited

◆ demod_initialized

bool itpp::Modulator_ND::demod_initialized
protectedinherited

Flag indicating whether the demodulator has been initialized.

Definition at line 134 of file modulator_nd.h.

Referenced by itpp::Modulator_NCD::init_soft_demodulator(), and init_soft_demodulator().

◆ bitmap

Array<bmat> itpp::Modulator_ND::bitmap
protectedinherited

◆ bits2symbols

Array<ivec> itpp::Modulator_ND::bits2symbols
protectedinherited

◆ gaussnorm

double itpp::Modulator_ND::gaussnorm
protectedinherited

The normalization factor in the exponent (in front of the square norm) in the Gaussian distribution.

Definition at line 140 of file modulator_nd.h.

Referenced by itpp::Modulator_NCD::init_soft_demodulator(), init_soft_demodulator(), and yxnormupdate().

◆ hnorms

itpp::vec itpp::Modulator_ND::hnorms
protectedinherited

Norms part dependent on H.

Definition at line 142 of file modulator_nd.h.

Referenced by hxnormupdate(), itpp::Modulator_NCD::init_soft_demodulator(), init_soft_demodulator(), and yxnormupdate().

◆ Qnorms

itpp::QLLRvec itpp::Modulator_ND::Qnorms
protectedinherited

◆ llrapr

itpp::QLLRvec itpp::Modulator_ND::llrapr
protectedinherited

A prioi information.

Definition at line 146 of file modulator_nd.h.

Referenced by yxnormupdate().

◆ bpos2cpos

itpp::ivec itpp::Modulator_ND::bpos2cpos
protectedinherited

The bit to column mapping.

Definition at line 148 of file modulator_nd.h.

Referenced by hxnormupdate(), itpp::Modulator_NCD::init_soft_demodulator(), init_soft_demodulator(), and yxnormupdate().

◆ bitcumsum

itpp::ivec itpp::Modulator_ND::bitcumsum
protectedinherited

The cumulative sum of bits in the symbol vector.

Definition at line 150 of file modulator_nd.h.

Referenced by hxnormupdate(), itpp::Modulator_NCD::init_soft_demodulator(), init_soft_demodulator(), and yxnormupdate().

◆ gray2dec

itpp::Array<itpp::Vec<unsigned> > itpp::Modulator_ND::gray2dec
protectedinherited

The Gray to decimal mapping.

Definition at line 152 of file modulator_nd.h.

Referenced by hxnormupdate(), itpp::Modulator_NCD::init_soft_demodulator(), init_soft_demodulator(), and yxnormupdate().


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.5