root/doc/html/classitpp_1_1Modulator__NCD.html @ 353

Revision 353, 47.0 kB (checked in by smidl, 16 years ago)

doc

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: itpp::Modulator_NCD Class Reference</title>
4<link href="tabs.css" rel="stylesheet" type="text/css">
5<link href="doxygen.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.8 -->
8<script type="text/javascript">
9<!--
10function changeDisplayState (e){
11  var num=this.id.replace(/[^[0-9]/g,'');
12  var button=this.firstChild;
13  var sectionDiv=document.getElementById('dynsection'+num);
14  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
15    sectionDiv.style.display='block';
16    button.src='open.gif';
17  }else{
18    sectionDiv.style.display='none';
19    button.src='closed.gif';
20  }
21}
22function initDynSections(){
23  var divs=document.getElementsByTagName('div');
24  var sectionCounter=1;
25  for(var i=0;i<divs.length-1;i++){
26    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
27      var header=divs[i];
28      var section=divs[i+1];
29      var button=header.firstChild;
30      if (button!='IMG'){
31        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
32        button=document.createElement('img');
33        divs[i].insertBefore(button,divs[i].firstChild);
34      }
35      header.style.cursor='pointer';
36      header.onclick=changeDisplayState;
37      header.id='dynheader'+sectionCounter;
38      button.src='closed.gif';
39      section.id='dynsection'+sectionCounter;
40      section.style.display='none';
41      section.style.marginLeft='14px';
42      sectionCounter++;
43    }
44  }
45}
46window.onload = initDynSections;
47-->
48</script>
49<div class="navigation" id="top">
50  <div class="tabs">
51    <ul>
52      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
53      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
54      <li><a href="modules.html"><span>Modules</span></a></li>
55      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
56      <li><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
62      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
63      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
64      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
65    </ul>
66  </div>
67  <div class="navpath"><b>itpp</b>::<a class="el" href="classitpp_1_1Modulator__NCD.html">Modulator_NCD</a>
68  </div>
69</div>
70<div class="contents">
71<h1>itpp::Modulator_NCD Class Reference<br>
72<small>
73[<a class="el" href="group__modulators.html">Digital Modulation</a>]</small>
74</h1><!-- doxytag: class="itpp::Modulator_NCD" --><!-- doxytag: inherits="itpp::Modulator_ND" -->Base class for vector (MIMO) channel modulator/demodulators with complex valued components. 
75<a href="#_details">More...</a>
76<p>
77<code>#include &lt;<a class="el" href="modulator__nd_8h-source.html">modulator_nd.h</a>&gt;</code>
78<p>
79
80<p>
81<a href="classitpp_1_1Modulator__NCD-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
82<tr><td></td></tr>
83<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">Soft_Demod_Method</a> { <a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035c743f79c2dbf90c34fd03075b7648058">FULL_ENUM_LOGMAP</a>,
85<a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035d5798fd18f93f399475392b8aee09cba">ZF_LOGMAP</a>
86 }</td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Soft demodulation method.  <a href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">More...</a><br></td></tr>
89<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11407bf656e5d3f2c2ecdc5109414078"></a><!-- doxytag: member="itpp::Modulator_NCD::Modulator_NCD" ref="11407bf656e5d3f2c2ecdc5109414078" args="()" -->
91&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#11407bf656e5d3f2c2ecdc5109414078">Modulator_NCD</a> ()</td></tr>
92
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6ddf4836ce64d08181002e708f4f6091"></a><!-- doxytag: member="itpp::Modulator_NCD::~Modulator_NCD" ref="6ddf4836ce64d08181002e708f4f6091" args="()" -->
95&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#6ddf4836ce64d08181002e708f4f6091">~Modulator_NCD</a> ()</td></tr>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
98<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41b6b6b9a21039a88a1ba07f358cd43a"></a><!-- doxytag: member="itpp::Modulator_NCD::get_symbols" ref="41b6b6b9a21039a88a1ba07f358cd43a" args="() const " -->
99<a class="el" href="classitpp_1_1Array.html">Array</a>&lt; cvec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#41b6b6b9a21039a88a1ba07f358cd43a">get_symbols</a> () const </td></tr>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get modulation symbols per dimension. <br></td></tr>
102<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e0475c4f4dc96d08f5f4707a9dfaf17"></a><!-- doxytag: member="itpp::Modulator_NCD::modulate_bits" ref="6e0475c4f4dc96d08f5f4707a9dfaf17" args="(const bvec &amp;bits, cvec &amp;symbols) const " -->
103void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#6e0475c4f4dc96d08f5f4707a9dfaf17">modulate_bits</a> (const bvec &amp;bits, cvec &amp;<a class="el" href="classitpp_1_1Modulator__NCD.html#e6948b64b0a10e47fd0a864ead0516b7">symbols</a>) const </td></tr>
104
105<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Modulate <code>bits</code> into <code>symbols</code>. <br></td></tr>
106<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1bee64f0ca29bf8ef1dea72a083ff4ad"></a><!-- doxytag: member="itpp::Modulator_NCD::modulate_bits" ref="1bee64f0ca29bf8ef1dea72a083ff4ad" args="(const bvec &amp;bits) const " -->
107cvec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#1bee64f0ca29bf8ef1dea72a083ff4ad">modulate_bits</a> (const bvec &amp;bits) const </td></tr>
108
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Modulation of bits. <br></td></tr>
110<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#a25a04d3c20e24c033a1dd152e674f7c">demodulate_soft_bits</a> (const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori, <a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">Soft_Demod_Method</a> method)</td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Soft demodulation wrapper function for various methods.  <a href="#a25a04d3c20e24c033a1dd152e674f7c"></a><br></td></tr>
113<tr><td class="memItemLeft" nowrap align="right" valign="top">QLLRvec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#a45b72fcdc70134a46710d7a5a381976">demodulate_soft_bits</a> (const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, <a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">Soft_Demod_Method</a> method)</td></tr>
114
115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Soft demodulation wrapper function for various methods.  <a href="#a45b72fcdc70134a46710d7a5a381976"></a><br></td></tr>
116<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#ca10f18dbcf7542db0c0d8078f7834ae">demodulate_soft_bits</a> (const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori)</td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points.  <a href="#ca10f18dbcf7542db0c0d8078f7834ae"></a><br></td></tr>
119<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#544faf2c9477cf7b2fa2f69efc7b3abe">demodulate_soft_bits</a> (const cvec &amp;y, const cvec &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori)</td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Soft MAP demodulation for parallelchannels without crosstalk.  <a href="#544faf2c9477cf7b2fa2f69efc7b3abe"></a><br></td></tr>
122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e5a2e50b1bf055d6db9f56bd4fe83105"></a><!-- doxytag: member="itpp::Modulator_NCD::set_llrcalc" ref="e5a2e50b1bf055d6db9f56bd4fe83105" args="(LLR_calc_unit llrcalc_in)" -->
123void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#e5a2e50b1bf055d6db9f56bd4fe83105">set_llrcalc</a> (<a class="el" href="classitpp_1_1LLR__calc__unit.html">LLR_calc_unit</a> llrcalc_in)</td></tr>
124
125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set LLR calculation unit. <br></td></tr>
126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b68aa9155f305d9fb4e8d3cab45d5c9d"></a><!-- doxytag: member="itpp::Modulator_NCD::get_llrcalc" ref="b68aa9155f305d9fb4e8d3cab45d5c9d" args="() const " -->
127<a class="el" href="classitpp_1_1LLR__calc__unit.html">LLR_calc_unit</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#b68aa9155f305d9fb4e8d3cab45d5c9d">get_llrcalc</a> () const </td></tr>
128
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get LLR calculation unit. <br></td></tr>
130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64691da50e1a9f604c41bdda141d477a"></a><!-- doxytag: member="itpp::Modulator_NCD::get_dim" ref="64691da50e1a9f604c41bdda141d477a" args="() const " -->
131int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#64691da50e1a9f604c41bdda141d477a">get_dim</a> () const </td></tr>
132
133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of dimensions. <br></td></tr>
134<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa89b07529c5c5bbe75d4c6b45f9264c"></a><!-- doxytag: member="itpp::Modulator_NCD::get_k" ref="aa89b07529c5c5bbe75d4c6b45f9264c" args="() const " -->
135ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#aa89b07529c5c5bbe75d4c6b45f9264c">get_k</a> () const </td></tr>
136
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of bits per modulation symbol per dimension. <br></td></tr>
138<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9f88563e5de7dd446f0c61c86976c76"></a><!-- doxytag: member="itpp::Modulator_NCD::get_M" ref="a9f88563e5de7dd446f0c61c86976c76" args="() const " -->
139ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#a9f88563e5de7dd446f0c61c86976c76">get_M</a> () const </td></tr>
140
141<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of modulation symbols per dimension. <br></td></tr>
142<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
143<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#27e760213e8c30b93fc338b4a6e3a864">update_norm</a> (double &amp;norm, int <a class="el" href="classitpp_1_1Modulator__ND.html#5545e8651244ffca103252926fb18a1c">k</a>, int sold, int snew, const cvec &amp;ytH, const cmat &amp;HtH, const ivec &amp;s)</td></tr>
144
145<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update residual norm (for internal use).  <a href="#27e760213e8c30b93fc338b4a6e3a864"></a><br></td></tr>
146<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7eaacc702e0564b3388b9fb9413d301"></a><!-- doxytag: member="itpp::Modulator_NCD::probabilities" ref="a7eaacc702e0564b3388b9fb9413d301" args="(QLLR l)" -->
147QLLRvec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#a7eaacc702e0564b3388b9fb9413d301">probabilities</a> (QLLR l)</td></tr>
148
149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert LLR to log-probabilities. <br></td></tr>
150<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6278bfead2080abfd50998067336eb12"></a><!-- doxytag: member="itpp::Modulator_NCD::probabilities" ref="6278bfead2080abfd50998067336eb12" args="(const QLLRvec &amp;l)" -->
151<a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#6278bfead2080abfd50998067336eb12">probabilities</a> (const QLLRvec &amp;l)</td></tr>
152
153<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert LLR to log-probabilities, vector version. <br></td></tr>
154<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#48975e0d26dac075e1f448bdca15ca87">update_LLR</a> (const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;logP_apriori, const ivec &amp;s, QLLR scaled_norm, QLLRvec &amp;num, QLLRvec &amp;denom)</td></tr>
155
156<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update LLR (for internal use).  <a href="#48975e0d26dac075e1f448bdca15ca87"></a><br></td></tr>
157<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#6bb417318b8105a78db7ad2c618283ce">update_LLR</a> (const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;logP_apriori, int s, QLLR scaled_norm, int j, QLLRvec &amp;num, QLLRvec &amp;denom)</td></tr>
158
159<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update LLR, for scalar channel (for internal use).  <a href="#6bb417318b8105a78db7ad2c618283ce"></a><br></td></tr>
160<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
161<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6948b64b0a10e47fd0a864ead0516b7"></a><!-- doxytag: member="itpp::Modulator_NCD::symbols" ref="e6948b64b0a10e47fd0a864ead0516b7" args="" -->
162<a class="el" href="classitpp_1_1Array.html">Array</a>&lt; cvec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#e6948b64b0a10e47fd0a864ead0516b7">symbols</a></td></tr>
163
164<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vectors of modulation symbols (along each dimension). <br></td></tr>
165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18f0f81646514aa7210415f83fc62c1b"></a><!-- doxytag: member="itpp::Modulator_NCD::nt" ref="18f0f81646514aa7210415f83fc62c1b" args="" -->
166int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#18f0f81646514aa7210415f83fc62c1b">nt</a></td></tr>
167
168<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of dimensions. <br></td></tr>
169<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8690246ff99fd198a5e7d179954ac5a9"></a><!-- doxytag: member="itpp::Modulator_NCD::llrcalc" ref="8690246ff99fd198a5e7d179954ac5a9" args="" -->
170<a class="el" href="classitpp_1_1LLR__calc__unit.html">LLR_calc_unit</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#8690246ff99fd198a5e7d179954ac5a9">llrcalc</a></td></tr>
171
172<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">LLR calculation unit. <br></td></tr>
173<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5545e8651244ffca103252926fb18a1c"></a><!-- doxytag: member="itpp::Modulator_NCD::k" ref="5545e8651244ffca103252926fb18a1c" args="" -->
174ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#5545e8651244ffca103252926fb18a1c">k</a></td></tr>
175
176<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of bits per modulation symbol. <br></td></tr>
177<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45916df32ce60b4c286367501482b441"></a><!-- doxytag: member="itpp::Modulator_NCD::M" ref="45916df32ce60b4c286367501482b441" args="" -->
178ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#45916df32ce60b4c286367501482b441">M</a></td></tr>
179
180<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of modulation symbols along each dimension. <br></td></tr>
181<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf19a4c13454739dfa68d0b9f6a85211"></a><!-- doxytag: member="itpp::Modulator_NCD::bitmap" ref="cf19a4c13454739dfa68d0b9f6a85211" args="" -->
182<a class="el" href="classitpp_1_1Array.html">Array</a>&lt; <a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#cf19a4c13454739dfa68d0b9f6a85211">bitmap</a></td></tr>
183
184<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bit mapping table (one table per dimension). <br></td></tr>
185<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="123a047e221467e2f63b4e353963b1a7"></a><!-- doxytag: member="itpp::Modulator_NCD::bits2symbols" ref="123a047e221467e2f63b4e353963b1a7" args="" -->
186<a class="el" href="classitpp_1_1Array.html">Array</a>&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#123a047e221467e2f63b4e353963b1a7">bits2symbols</a></td></tr>
187
188<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bit pattern in decimal form ordered and the corresponding symbols (one pattern per dimension). <br></td></tr>
189<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
190<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5934d627a296bb0e22e09c3d9051553b"></a><!-- doxytag: member="itpp::Modulator_NCD::operator&lt;&lt;" ref="5934d627a296bb0e22e09c3d9051553b" args="(std::ostream &amp;os, const Modulator_NCD &amp;m)" -->
191std::ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__NCD.html#5934d627a296bb0e22e09c3d9051553b">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classitpp_1_1Modulator__NCD.html">Modulator_NCD</a> &amp;m)</td></tr>
192
193<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print some properties of the MIMO modulator (mainly to aid debugging). <br></td></tr>
194</table>
195<hr><a name="_details"></a><h2>Detailed Description</h2>
196Base class for vector (MIMO) channel modulator/demodulators with complex valued components.
197<p>
198This class is equivalent to <code><a class="el" href="classitpp_1_1Modulator__NRD.html" title="Base class for N-dimensional vector (MIMO) channel modulators/demodulators with real-valued...">Modulator_NRD</a></code> except for that all quantities are complex-valued.<p>
199See <code><a class="el" href="classitpp_1_1ND__UPAM.html" title="Real-valued MIMO channel with uniform PAM along each dimension.">ND_UPAM</a></code> for examples. <hr><h2>Member Enumeration Documentation</h2>
200<a class="anchor" name="6e3b4c745f904cdb34301aeb4cc03035"></a><!-- doxytag: member="itpp::Modulator_NCD::Soft_Demod_Method" ref="6e3b4c745f904cdb34301aeb4cc03035" args="" -->
201<div class="memitem">
202<div class="memproto">
203      <table class="memname">
204        <tr>
205          <td class="memname">enum <a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">itpp::Modulator_ND::Soft_Demod_Method</a><code> [inherited]</code>          </td>
206        </tr>
207      </table>
208</div>
209<div class="memdoc">
210
211<p>
212Soft demodulation method.
213<p>
214<dl compact><dt><b>Enumerator: </b></dt><dd>
215<table border="0" cellspacing="2" cellpadding="0">
216<tr><td valign="top"><em><a class="anchor" name="6e3b4c745f904cdb34301aeb4cc03035c743f79c2dbf90c34fd03075b7648058"></a><!-- doxytag: member="FULL_ENUM_LOGMAP" ref="6e3b4c745f904cdb34301aeb4cc03035c743f79c2dbf90c34fd03075b7648058" args="" -->FULL_ENUM_LOGMAP</em>&nbsp;</td><td>
217Log-MAP demodulation by "brute-force" enumeration of all points. </td></tr>
218<tr><td valign="top"><em><a class="anchor" name="6e3b4c745f904cdb34301aeb4cc03035d5798fd18f93f399475392b8aee09cba"></a><!-- doxytag: member="ZF_LOGMAP" ref="6e3b4c745f904cdb34301aeb4cc03035d5798fd18f93f399475392b8aee09cba" args="" -->ZF_LOGMAP</em>&nbsp;</td><td>
219Zero-Forcing Log-MAP approximated demodulation. </td></tr>
220</table>
221</dl>
222
223</div>
224</div><p>
225<hr><h2>Member Function Documentation</h2>
226<a class="anchor" name="544faf2c9477cf7b2fa2f69efc7b3abe"></a><!-- doxytag: member="itpp::Modulator_NCD::demodulate_soft_bits" ref="544faf2c9477cf7b2fa2f69efc7b3abe" args="(const cvec &amp;y, const cvec &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori)" -->
227<div class="memitem">
228<div class="memproto">
229      <table class="memname">
230        <tr>
231          <td class="memname">void itpp::Modulator_NCD::demodulate_soft_bits           </td>
232          <td>(</td>
233          <td class="paramtype">const cvec &amp;&nbsp;</td>
234          <td class="paramname"> <em>y</em>, </td>
235        </tr>
236        <tr>
237          <td class="paramkey"></td>
238          <td></td>
239          <td class="paramtype">const cvec &amp;&nbsp;</td>
240          <td class="paramname"> <em>H</em>, </td>
241        </tr>
242        <tr>
243          <td class="paramkey"></td>
244          <td></td>
245          <td class="paramtype">double&nbsp;</td>
246          <td class="paramname"> <em>sigma2</em>, </td>
247        </tr>
248        <tr>
249          <td class="paramkey"></td>
250          <td></td>
251          <td class="paramtype">const QLLRvec &amp;&nbsp;</td>
252          <td class="paramname"> <em>LLR_apriori</em>, </td>
253        </tr>
254        <tr>
255          <td class="paramkey"></td>
256          <td></td>
257          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
258          <td class="paramname"> <em>LLR_aposteriori</em></td><td>&nbsp;</td>
259        </tr>
260        <tr>
261          <td></td>
262          <td>)</td>
263          <td></td><td></td><td></td>
264        </tr>
265      </table>
266</div>
267<div class="memdoc">
268
269<p>
270Soft MAP demodulation for parallelchannels without crosstalk.
271<p>
272This function is a much faster equivalent to <code>demodulate_soft_bits</code> with <img class="formulaInl" alt="$H = \mbox{diag}(h)$" src="form_299.png">. Its complexity is linear in the number of subchannels.
273<p>References <a class="el" href="itassert_8h-source.html#l00094">it_assert</a>, <a class="el" href="modulator__nd_8h-source.html#l00096">itpp::Modulator_ND::k</a>, <a class="el" href="matfunc_8h-source.html#l00051">itpp::length()</a>, <a class="el" href="modulator__nd_8h-source.html#l00094">itpp::Modulator_ND::llrcalc</a>, <a class="el" href="modulator__nd_8h-source.html#l00098">itpp::Modulator_ND::M</a>, <a class="el" href="modulator__nd_8h-source.html#l00092">itpp::Modulator_ND::nt</a>, <a class="el" href="group__specmat.html#g7c2c02190b4aa222cc692641cc3a73c7">itpp::ones_i()</a>, <a class="el" href="modulator__nd_8cpp-source.html#l00043">itpp::Modulator_ND::probabilities()</a>, <a class="el" href="elem__math_8h-source.html#l00056">itpp::sqr()</a>, <a class="el" href="matfunc_8h-source.html#l00077">itpp::sum()</a>, <a class="el" href="modulator__nd_8h-source.html#l00448">symbols</a>, <a class="el" href="llr_8h-source.html#l00235">itpp::LLR_calc_unit::to_qllr()</a>, and <a class="el" href="modulator__nd_8cpp-source.html#l00093">itpp::Modulator_ND::update_LLR()</a>.</p>
274
275</div>
276</div><p>
277<a class="anchor" name="ca10f18dbcf7542db0c0d8078f7834ae"></a><!-- doxytag: member="itpp::Modulator_NCD::demodulate_soft_bits" ref="ca10f18dbcf7542db0c0d8078f7834ae" args="(const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori)" -->
278<div class="memitem">
279<div class="memproto">
280      <table class="memname">
281        <tr>
282          <td class="memname">void itpp::Modulator_NCD::demodulate_soft_bits           </td>
283          <td>(</td>
284          <td class="paramtype">const cvec &amp;&nbsp;</td>
285          <td class="paramname"> <em>y</em>, </td>
286        </tr>
287        <tr>
288          <td class="paramkey"></td>
289          <td></td>
290          <td class="paramtype">const cmat &amp;&nbsp;</td>
291          <td class="paramname"> <em>H</em>, </td>
292        </tr>
293        <tr>
294          <td class="paramkey"></td>
295          <td></td>
296          <td class="paramtype">double&nbsp;</td>
297          <td class="paramname"> <em>sigma2</em>, </td>
298        </tr>
299        <tr>
300          <td class="paramkey"></td>
301          <td></td>
302          <td class="paramtype">const QLLRvec &amp;&nbsp;</td>
303          <td class="paramname"> <em>LLR_apriori</em>, </td>
304        </tr>
305        <tr>
306          <td class="paramkey"></td>
307          <td></td>
308          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
309          <td class="paramname"> <em>LLR_aposteriori</em></td><td>&nbsp;</td>
310        </tr>
311        <tr>
312          <td></td>
313          <td>)</td>
314          <td></td><td></td><td></td>
315        </tr>
316      </table>
317</div>
318<div class="memdoc">
319
320<p>
321Soft MAP demodulation for multidimensional channel, by "brute-force" enumeration of all constellation points.
322<p>
323This function computes the LLR values <p class="formulaDsp">
324<img class="formulaDsp" alt="\[ LLR(k) = \log \left( \frac {\sum_{s:b_k=0} \exp \left( -\frac{|y - Hs|^2}{\sigma^2} \right) P(s)} {\sum_{s:b_k=1} \exp \left( -\frac{|y - Hs|^2}{\sigma^2} \right) P(s)} \right) \]" src="form_301.png">
325<p>
326<p>
327without approximations. It is assumed that H, y and s are complex-valued.<p>
328<dl compact><dt><b>Parameters:</b></dt><dd>
329  <table border="0" cellspacing="2" cellpadding="0">
330    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>Received vector </td></tr>
331    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>H</em>&nbsp;</td><td>Channel matrix </td></tr>
332    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sigma2</em>&nbsp;</td><td>Noise variance per complex dimension, i.e. the sum of real and imaginary parts (typically <img class="formulaInl" alt="$N_0$" src="form_233.png">) </td></tr>
333    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>LLR_apriori</em>&nbsp;</td><td>Vector of a priori LLR values per bit </td></tr>
334    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>LLR_aposteriori</em>&nbsp;</td><td>Vector of a posteriori LLR values</td></tr>
335  </table>
336</dl>
337The function performs an exhaustive search over all possible points <code>s</code> in the n-dimensional constellation. This is only feasible for relatively small constellations. The Jacobian logarithm is used to compute the sum-exp expression.
338<p>References <a class="el" href="fix__functions_8cpp-source.html#l00098">itpp::conj()</a>, <a class="el" href="itassert_8h-source.html#l00094">it_assert</a>, <a class="el" href="modulator__nd_8h-source.html#l00096">itpp::Modulator_ND::k</a>, <a class="el" href="matfunc_8h-source.html#l00051">itpp::length()</a>, <a class="el" href="modulator__nd_8h-source.html#l00094">itpp::Modulator_ND::llrcalc</a>, <a class="el" href="modulator__nd_8h-source.html#l00098">itpp::Modulator_ND::M</a>, <a class="el" href="misc__stat_8h-source.html#l00193">itpp::norm()</a>, <a class="el" href="modulator__nd_8h-source.html#l00092">itpp::Modulator_ND::nt</a>, <a class="el" href="group__specmat.html#g7c2c02190b4aa222cc692641cc3a73c7">itpp::ones_i()</a>, <a class="el" href="modulator__nd_8cpp-source.html#l00043">itpp::Modulator_ND::probabilities()</a>, <a class="el" href="elem__math_8h-source.html#l00056">itpp::sqr()</a>, <a class="el" href="matfunc_8h-source.html#l00077">itpp::sum()</a>, <a class="el" href="modulator__nd_8h-source.html#l00448">symbols</a>, <a class="el" href="llr_8h-source.html#l00235">itpp::LLR_calc_unit::to_qllr()</a>, <a class="el" href="modulator__nd_8cpp-source.html#l00093">itpp::Modulator_ND::update_LLR()</a>, and <a class="el" href="modulator__nd_8cpp-source.html#l00529">update_norm()</a>.</p>
339
340</div>
341</div><p>
342<a class="anchor" name="a45b72fcdc70134a46710d7a5a381976"></a><!-- doxytag: member="itpp::Modulator_NCD::demodulate_soft_bits" ref="a45b72fcdc70134a46710d7a5a381976" args="(const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, Soft_Demod_Method method)" -->
343<div class="memitem">
344<div class="memproto">
345      <table class="memname">
346        <tr>
347          <td class="memname">QLLRvec itpp::Modulator_NCD::demodulate_soft_bits           </td>
348          <td>(</td>
349          <td class="paramtype">const cvec &amp;&nbsp;</td>
350          <td class="paramname"> <em>y</em>, </td>
351        </tr>
352        <tr>
353          <td class="paramkey"></td>
354          <td></td>
355          <td class="paramtype">const cmat &amp;&nbsp;</td>
356          <td class="paramname"> <em>H</em>, </td>
357        </tr>
358        <tr>
359          <td class="paramkey"></td>
360          <td></td>
361          <td class="paramtype">double&nbsp;</td>
362          <td class="paramname"> <em>sigma2</em>, </td>
363        </tr>
364        <tr>
365          <td class="paramkey"></td>
366          <td></td>
367          <td class="paramtype">const QLLRvec &amp;&nbsp;</td>
368          <td class="paramname"> <em>LLR_apriori</em>, </td>
369        </tr>
370        <tr>
371          <td class="paramkey"></td>
372          <td></td>
373          <td class="paramtype"><a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">Soft_Demod_Method</a>&nbsp;</td>
374          <td class="paramname"> <em>method</em></td><td>&nbsp;</td>
375        </tr>
376        <tr>
377          <td></td>
378          <td>)</td>
379          <td></td><td></td><td></td>
380        </tr>
381      </table>
382</div>
383<div class="memdoc">
384
385<p>
386Soft demodulation wrapper function for various methods.
387<p>
388Currently the following two demodulation methods are supported:<ul>
389<li>FULL_ENUM_LOGMAP - exact demodulation, which use "brute-force" enumeration of all constellation points</li><li>ZF_LOGMAP - approximated methods with Zero-Forcing preprocessing, which sometimes tends to perform poorly, especially for poorly conditioned H</li></ul>
390<p>
391<dl compact><dt><b>Parameters:</b></dt><dd>
392  <table border="0" cellspacing="2" cellpadding="0">
393    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>Received vector </td></tr>
394    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>H</em>&nbsp;</td><td>Channel matrix </td></tr>
395    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sigma2</em>&nbsp;</td><td>Noise variance per complex dimension, i.e. the sum of real and imaginary parts (typically <img class="formulaInl" alt="$N_0$" src="form_233.png">) </td></tr>
396    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>LLR_apriori</em>&nbsp;</td><td>Vector of a priori LLR values per bit </td></tr>
397    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>method</em>&nbsp;</td><td>Soft demodulation method </td></tr>
398  </table>
399</dl>
400<dl class="return" compact><dt><b>Returns:</b></dt><dd>Vector of a posteriori LLR values </dd></dl>
401
402<p>References <a class="el" href="modulator__nd_8cpp-source.html#l00370">demodulate_soft_bits()</a>.</p>
403
404</div>
405</div><p>
406<a class="anchor" name="a25a04d3c20e24c033a1dd152e674f7c"></a><!-- doxytag: member="itpp::Modulator_NCD::demodulate_soft_bits" ref="a25a04d3c20e24c033a1dd152e674f7c" args="(const cvec &amp;y, const cmat &amp;H, double sigma2, const QLLRvec &amp;LLR_apriori, QLLRvec &amp;LLR_aposteriori, Soft_Demod_Method method)" -->
407<div class="memitem">
408<div class="memproto">
409      <table class="memname">
410        <tr>
411          <td class="memname">void itpp::Modulator_NCD::demodulate_soft_bits           </td>
412          <td>(</td>
413          <td class="paramtype">const cvec &amp;&nbsp;</td>
414          <td class="paramname"> <em>y</em>, </td>
415        </tr>
416        <tr>
417          <td class="paramkey"></td>
418          <td></td>
419          <td class="paramtype">const cmat &amp;&nbsp;</td>
420          <td class="paramname"> <em>H</em>, </td>
421        </tr>
422        <tr>
423          <td class="paramkey"></td>
424          <td></td>
425          <td class="paramtype">double&nbsp;</td>
426          <td class="paramname"> <em>sigma2</em>, </td>
427        </tr>
428        <tr>
429          <td class="paramkey"></td>
430          <td></td>
431          <td class="paramtype">const QLLRvec &amp;&nbsp;</td>
432          <td class="paramname"> <em>LLR_apriori</em>, </td>
433        </tr>
434        <tr>
435          <td class="paramkey"></td>
436          <td></td>
437          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
438          <td class="paramname"> <em>LLR_aposteriori</em>, </td>
439        </tr>
440        <tr>
441          <td class="paramkey"></td>
442          <td></td>
443          <td class="paramtype"><a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">Soft_Demod_Method</a>&nbsp;</td>
444          <td class="paramname"> <em>method</em></td><td>&nbsp;</td>
445        </tr>
446        <tr>
447          <td></td>
448          <td>)</td>
449          <td></td><td></td><td></td>
450        </tr>
451      </table>
452</div>
453<div class="memdoc">
454
455<p>
456Soft demodulation wrapper function for various methods.
457<p>
458Soft demodulation wrapper function for various methods Currently the following two demodulation methods are supported:<ul>
459<li>FULL_ENUM_LOGMAP - exact demodulation, which use "brute-force" enumeration of all constellation points</li><li>ZF_LOGMAP - approximated methods with Zero-Forcing preprocessing, which sometimes tends to perform poorly, especially for poorly conditioned H</li></ul>
460<p>
461<dl compact><dt><b>Parameters:</b></dt><dd>
462  <table border="0" cellspacing="2" cellpadding="0">
463    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>Received vector </td></tr>
464    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>H</em>&nbsp;</td><td>Channel matrix </td></tr>
465    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sigma2</em>&nbsp;</td><td>Noise variance per complex dimension, i.e. the sum of real and imaginary parts (typically <img class="formulaInl" alt="$N_0$" src="form_233.png">) </td></tr>
466    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>LLR_apriori</em>&nbsp;</td><td>Vector of a priori LLR values per bit </td></tr>
467    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>LLR_aposteriori</em>&nbsp;</td><td>Vector of a posteriori LLR values </td></tr>
468    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>method</em>&nbsp;</td><td>Soft demodulation method </td></tr>
469  </table>
470</dl>
471
472<p>References <a class="el" href="modulator__nd_8h-source.html#l00064">itpp::Modulator_ND::FULL_ENUM_LOGMAP</a>, <a class="el" href="inv_8cpp-source.html#l00109">itpp::inv()</a>, <a class="el" href="itassert_8h-source.html#l00094">it_assert</a>, <a class="el" href="itassert_8h-source.html#l00126">it_error</a>, <a class="el" href="modulator__nd_8h-source.html#l00096">itpp::Modulator_ND::k</a>, <a class="el" href="group__specmat.html#g593a539551f14bd6241701910a106b16">itpp::ones_c()</a>, <a class="el" href="fix__functions_8cpp-source.html#l00084">itpp::real()</a>, <a class="el" href="elem__math_8h-source.html#l00126">itpp::sqrt()</a>, <a class="el" href="matfunc_8h-source.html#l00077">itpp::sum()</a>, <a class="el" href="group__specmat.html#g9df9aa3553b6a5c07924954b85466cec">itpp::zeros_i()</a>, and <a class="el" href="modulator__nd_8h-source.html#l00066">itpp::Modulator_ND::ZF_LOGMAP</a>.</p>
473
474<p>Referenced by <a class="el" href="modulator__nd_8cpp-source.html#l00402">demodulate_soft_bits()</a>.</p>
475
476</div>
477</div><p>
478<a class="anchor" name="6bb417318b8105a78db7ad2c618283ce"></a><!-- doxytag: member="itpp::Modulator_NCD::update_LLR" ref="6bb417318b8105a78db7ad2c618283ce" args="(const Array&lt; QLLRvec &gt; &amp;logP_apriori, int s, QLLR scaled_norm, int j, QLLRvec &amp;num, QLLRvec &amp;denom)" -->
479<div class="memitem">
480<div class="memproto">
481      <table class="memname">
482        <tr>
483          <td class="memname">void itpp::Modulator_ND::update_LLR           </td>
484          <td>(</td>
485          <td class="paramtype">const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;&nbsp;</td>
486          <td class="paramname"> <em>logP_apriori</em>, </td>
487        </tr>
488        <tr>
489          <td class="paramkey"></td>
490          <td></td>
491          <td class="paramtype">int&nbsp;</td>
492          <td class="paramname"> <em>s</em>, </td>
493        </tr>
494        <tr>
495          <td class="paramkey"></td>
496          <td></td>
497          <td class="paramtype">QLLR&nbsp;</td>
498          <td class="paramname"> <em>scaled_norm</em>, </td>
499        </tr>
500        <tr>
501          <td class="paramkey"></td>
502          <td></td>
503          <td class="paramtype">int&nbsp;</td>
504          <td class="paramname"> <em>j</em>, </td>
505        </tr>
506        <tr>
507          <td class="paramkey"></td>
508          <td></td>
509          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
510          <td class="paramname"> <em>num</em>, </td>
511        </tr>
512        <tr>
513          <td class="paramkey"></td>
514          <td></td>
515          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
516          <td class="paramname"> <em>denom</em></td><td>&nbsp;</td>
517        </tr>
518        <tr>
519          <td></td>
520          <td>)</td>
521          <td></td><td></td><td><code> [protected, inherited]</code></td>
522        </tr>
523      </table>
524</div>
525<div class="memdoc">
526
527<p>
528Update LLR, for scalar channel (for internal use).
529<p>
530This function updates the numerator and denominator in the expression <p class="formulaDsp">
531<img class="formulaDsp" alt="\[ \log \left( \frac {\sum_{s:b_k=0} \exp (-x^2) P(s)} {\sum_{s:b_k=1} \exp (-x^2) P(s)} \right) \]" src="form_297.png">
532<p>
533<p>
534<dl compact><dt><b>Parameters:</b></dt><dd>
535  <table border="0" cellspacing="2" cellpadding="0">
536    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>logP_apriori</em>&nbsp;</td><td>Vector of a priori probabilities per bit </td></tr>
537    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>s</em>&nbsp;</td><td>Symbol </td></tr>
538    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>scaled_norm</em>&nbsp;</td><td>Argument of the exponents in the above equation </td></tr>
539    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>j</em>&nbsp;</td><td>Channel index (dimension) </td></tr>
540    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>num</em>&nbsp;</td><td>Logarithm of the numerator in the above expression </td></tr>
541    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>denom</em>&nbsp;</td><td>Logarithm of the denominator in the above expression </td></tr>
542  </table>
543</dl>
544
545<p>References <a class="el" href="modulator__nd_8h-source.html#l00100">itpp::Modulator_ND::bitmap</a>, <a class="el" href="llr_8h-source.html#l00270">itpp::LLR_calc_unit::jaclog()</a>, <a class="el" href="modulator__nd_8h-source.html#l00096">itpp::Modulator_ND::k</a>, and <a class="el" href="modulator__nd_8h-source.html#l00094">itpp::Modulator_ND::llrcalc</a>.</p>
546
547</div>
548</div><p>
549<a class="anchor" name="48975e0d26dac075e1f448bdca15ca87"></a><!-- doxytag: member="itpp::Modulator_NCD::update_LLR" ref="48975e0d26dac075e1f448bdca15ca87" args="(const Array&lt; QLLRvec &gt; &amp;logP_apriori, const ivec &amp;s, QLLR scaled_norm, QLLRvec &amp;num, QLLRvec &amp;denom)" -->
550<div class="memitem">
551<div class="memproto">
552      <table class="memname">
553        <tr>
554          <td class="memname">void itpp::Modulator_ND::update_LLR           </td>
555          <td>(</td>
556          <td class="paramtype">const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;&nbsp;</td>
557          <td class="paramname"> <em>logP_apriori</em>, </td>
558        </tr>
559        <tr>
560          <td class="paramkey"></td>
561          <td></td>
562          <td class="paramtype">const ivec &amp;&nbsp;</td>
563          <td class="paramname"> <em>s</em>, </td>
564        </tr>
565        <tr>
566          <td class="paramkey"></td>
567          <td></td>
568          <td class="paramtype">QLLR&nbsp;</td>
569          <td class="paramname"> <em>scaled_norm</em>, </td>
570        </tr>
571        <tr>
572          <td class="paramkey"></td>
573          <td></td>
574          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
575          <td class="paramname"> <em>num</em>, </td>
576        </tr>
577        <tr>
578          <td class="paramkey"></td>
579          <td></td>
580          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
581          <td class="paramname"> <em>denom</em></td><td>&nbsp;</td>
582        </tr>
583        <tr>
584          <td></td>
585          <td>)</td>
586          <td></td><td></td><td><code> [protected, inherited]</code></td>
587        </tr>
588      </table>
589</div>
590<div class="memdoc">
591
592<p>
593Update LLR (for internal use).
594<p>
595This function updates the numerator and denominator in the expression <p class="formulaDsp">
596<img class="formulaDsp" alt="\[ \log \left( \frac {\sum_{s:b_k=0} \exp(-x^2) P(s)} {\sum_{s:b_k=1} \exp(-x^2) P(s)} \right) \]" src="form_296.png">
597<p>
598<p>
599<dl compact><dt><b>Parameters:</b></dt><dd>
600  <table border="0" cellspacing="2" cellpadding="0">
601    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>logP_apriori</em>&nbsp;</td><td>Vector of a priori probabilities per bit </td></tr>
602    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>s</em>&nbsp;</td><td>Symbol vector </td></tr>
603    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>scaled_norm</em>&nbsp;</td><td>Argument of the exponents in the above equation </td></tr>
604    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>num</em>&nbsp;</td><td>Logarithm of the numerator in the above expression </td></tr>
605    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>denom</em>&nbsp;</td><td>Logarithm of the denominator in the above expression </td></tr>
606  </table>
607</dl>
608
609<p>References <a class="el" href="modulator__nd_8h-source.html#l00100">itpp::Modulator_ND::bitmap</a>, <a class="el" href="llr_8h-source.html#l00270">itpp::LLR_calc_unit::jaclog()</a>, <a class="el" href="modulator__nd_8h-source.html#l00096">itpp::Modulator_ND::k</a>, <a class="el" href="modulator__nd_8h-source.html#l00094">itpp::Modulator_ND::llrcalc</a>, and <a class="el" href="modulator__nd_8h-source.html#l00092">itpp::Modulator_ND::nt</a>.</p>
610
611<p>Referenced by <a class="el" href="modulator__nd_8cpp-source.html#l00413">demodulate_soft_bits()</a>, and <a class="el" href="modulator__nd_8cpp-source.html#l00193">itpp::Modulator_NRD::demodulate_soft_bits()</a>.</p>
612
613</div>
614</div><p>
615<a class="anchor" name="27e760213e8c30b93fc338b4a6e3a864"></a><!-- doxytag: member="itpp::Modulator_NCD::update_norm" ref="27e760213e8c30b93fc338b4a6e3a864" args="(double &amp;norm, int k, int sold, int snew, const cvec &amp;ytH, const cmat &amp;HtH, const ivec &amp;s)" -->
616<div class="memitem">
617<div class="memproto">
618      <table class="memname">
619        <tr>
620          <td class="memname">void itpp::Modulator_NCD::update_norm           </td>
621          <td>(</td>
622          <td class="paramtype">double &amp;&nbsp;</td>
623          <td class="paramname"> <em>norm</em>, </td>
624        </tr>
625        <tr>
626          <td class="paramkey"></td>
627          <td></td>
628          <td class="paramtype">int&nbsp;</td>
629          <td class="paramname"> <em>k</em>, </td>
630        </tr>
631        <tr>
632          <td class="paramkey"></td>
633          <td></td>
634          <td class="paramtype">int&nbsp;</td>
635          <td class="paramname"> <em>sold</em>, </td>
636        </tr>
637        <tr>
638          <td class="paramkey"></td>
639          <td></td>
640          <td class="paramtype">int&nbsp;</td>
641          <td class="paramname"> <em>snew</em>, </td>
642        </tr>
643        <tr>
644          <td class="paramkey"></td>
645          <td></td>
646          <td class="paramtype">const cvec &amp;&nbsp;</td>
647          <td class="paramname"> <em>ytH</em>, </td>
648        </tr>
649        <tr>
650          <td class="paramkey"></td>
651          <td></td>
652          <td class="paramtype">const cmat &amp;&nbsp;</td>
653          <td class="paramname"> <em>HtH</em>, </td>
654        </tr>
655        <tr>
656          <td class="paramkey"></td>
657          <td></td>
658          <td class="paramtype">const ivec &amp;&nbsp;</td>
659          <td class="paramname"> <em>s</em></td><td>&nbsp;</td>
660        </tr>
661        <tr>
662          <td></td>
663          <td>)</td>
664          <td></td><td></td><td><code> [protected]</code></td>
665        </tr>
666      </table>
667</div>
668<div class="memdoc">
669
670<p>
671Update residual norm (for internal use).
672<p>
673Update the residual norm <img class="formulaInl" alt="$|y-Hs|$" src="form_300.png"> when moving from one constellation point to an adjacent point.<p>
674<dl compact><dt><b>Parameters:</b></dt><dd>
675  <table border="0" cellspacing="2" cellpadding="0">
676    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>norm</em>&nbsp;</td><td>Norm to be updated </td></tr>
677    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>k</em>&nbsp;</td><td>Position where s changed </td></tr>
678    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>sold</em>&nbsp;</td><td>Old value of s[k] </td></tr>
679    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>snew</em>&nbsp;</td><td>New value of s[k] </td></tr>
680    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>ytH</em>&nbsp;</td><td>y'H vector </td></tr>
681    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>HtH</em>&nbsp;</td><td>Grammian matrix H'H </td></tr>
682    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>s</em>&nbsp;</td><td>Symbol vector </td></tr>
683  </table>
684</dl>
685
686<p>References <a class="el" href="fix__functions_8cpp-source.html#l00098">itpp::conj()</a>, <a class="el" href="matfunc_8h-source.html#l00051">itpp::length()</a>, <a class="el" href="fix__functions_8cpp-source.html#l00084">itpp::real()</a>, <a class="el" href="elem__math_8h-source.html#l00056">itpp::sqr()</a>, and <a class="el" href="modulator__nd_8h-source.html#l00448">symbols</a>.</p>
687
688<p>Referenced by <a class="el" href="modulator__nd_8cpp-source.html#l00444">demodulate_soft_bits()</a>.</p>
689
690</div>
691</div><p>
692<hr>The documentation for this class was generated from the following files:<ul>
693<li><a class="el" href="modulator__nd_8h-source.html">modulator_nd.h</a><li><a class="el" href="modulator__nd_8cpp.html">modulator_nd.cpp</a></ul>
694</div>
695<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:19 2009 for mixpp by&nbsp;
696<a href="http://www.doxygen.org/index.html">
697<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
698</body>
699</html>
Note: See TracBrowser for help on using the browser.