root/doc/html/classitpp_1_1Modulator__ND.html @ 353

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

doc

RevLine 
[353]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_ND 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__ND.html">Modulator_ND</a>
68  </div>
69</div>
70<div class="contents">
71<h1>itpp::Modulator_ND Class Reference<br>
72<small>
73[<a class="el" href="group__modulators.html">Digital Modulation</a>]</small>
74</h1><!-- doxytag: class="itpp::Modulator_ND" -->Base class for an N-dimensional (ND) vector (MIMO) modulator. 
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__ND-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="bccded6493ae83d65a5e9dd44c2f1861"></a><!-- doxytag: member="itpp::Modulator_ND::Modulator_ND" ref="bccded6493ae83d65a5e9dd44c2f1861" args="(LLR_calc_unit llrcalc_in=LLR_calc_unit())" -->
91&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#bccded6493ae83d65a5e9dd44c2f1861">Modulator_ND</a> (<a class="el" href="classitpp_1_1LLR__calc__unit.html">LLR_calc_unit</a> llrcalc_in=<a class="el" href="classitpp_1_1LLR__calc__unit.html">LLR_calc_unit</a>())</td></tr>
92
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acd9f3d099c05b0298a31032db3f7f7e"></a><!-- doxytag: member="itpp::Modulator_ND::~Modulator_ND" ref="acd9f3d099c05b0298a31032db3f7f7e" args="()" -->
95&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#acd9f3d099c05b0298a31032db3f7f7e">~Modulator_ND</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="e5a2e50b1bf055d6db9f56bd4fe83105"></a><!-- doxytag: member="itpp::Modulator_ND::set_llrcalc" ref="e5a2e50b1bf055d6db9f56bd4fe83105" args="(LLR_calc_unit llrcalc_in)" -->
99void&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>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set LLR calculation unit. <br></td></tr>
102<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b68aa9155f305d9fb4e8d3cab45d5c9d"></a><!-- doxytag: member="itpp::Modulator_ND::get_llrcalc" ref="b68aa9155f305d9fb4e8d3cab45d5c9d" args="() const " -->
103<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>
104
105<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get LLR calculation unit. <br></td></tr>
106<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="64691da50e1a9f604c41bdda141d477a"></a><!-- doxytag: member="itpp::Modulator_ND::get_dim" ref="64691da50e1a9f604c41bdda141d477a" args="() const " -->
107int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#64691da50e1a9f604c41bdda141d477a">get_dim</a> () const </td></tr>
108
109<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of dimensions. <br></td></tr>
110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa89b07529c5c5bbe75d4c6b45f9264c"></a><!-- doxytag: member="itpp::Modulator_ND::get_k" ref="aa89b07529c5c5bbe75d4c6b45f9264c" args="() const " -->
111ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#aa89b07529c5c5bbe75d4c6b45f9264c">get_k</a> () const </td></tr>
112
113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of bits per modulation symbol per dimension. <br></td></tr>
114<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9f88563e5de7dd446f0c61c86976c76"></a><!-- doxytag: member="itpp::Modulator_ND::get_M" ref="a9f88563e5de7dd446f0c61c86976c76" args="() const " -->
115ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#a9f88563e5de7dd446f0c61c86976c76">get_M</a> () const </td></tr>
116
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get number of modulation symbols per dimension. <br></td></tr>
118<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
119<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7eaacc702e0564b3388b9fb9413d301"></a><!-- doxytag: member="itpp::Modulator_ND::probabilities" ref="a7eaacc702e0564b3388b9fb9413d301" args="(QLLR l)" -->
120QLLRvec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#a7eaacc702e0564b3388b9fb9413d301">probabilities</a> (QLLR l)</td></tr>
121
122<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert LLR to log-probabilities. <br></td></tr>
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6278bfead2080abfd50998067336eb12"></a><!-- doxytag: member="itpp::Modulator_ND::probabilities" ref="6278bfead2080abfd50998067336eb12" args="(const QLLRvec &amp;l)" -->
124<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>
125
126<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert LLR to log-probabilities, vector version. <br></td></tr>
127<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>
128
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update LLR (for internal use).  <a href="#48975e0d26dac075e1f448bdca15ca87"></a><br></td></tr>
130<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>
131
132<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update LLR, for scalar channel (for internal use).  <a href="#6bb417318b8105a78db7ad2c618283ce"></a><br></td></tr>
133<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
134<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18f0f81646514aa7210415f83fc62c1b"></a><!-- doxytag: member="itpp::Modulator_ND::nt" ref="18f0f81646514aa7210415f83fc62c1b" args="" -->
135int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#18f0f81646514aa7210415f83fc62c1b">nt</a></td></tr>
136
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of dimensions. <br></td></tr>
138<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8690246ff99fd198a5e7d179954ac5a9"></a><!-- doxytag: member="itpp::Modulator_ND::llrcalc" ref="8690246ff99fd198a5e7d179954ac5a9" args="" -->
139<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>
140
141<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">LLR calculation unit. <br></td></tr>
142<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5545e8651244ffca103252926fb18a1c"></a><!-- doxytag: member="itpp::Modulator_ND::k" ref="5545e8651244ffca103252926fb18a1c" args="" -->
143ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#5545e8651244ffca103252926fb18a1c">k</a></td></tr>
144
145<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of bits per modulation symbol. <br></td></tr>
146<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45916df32ce60b4c286367501482b441"></a><!-- doxytag: member="itpp::Modulator_ND::M" ref="45916df32ce60b4c286367501482b441" args="" -->
147ivec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classitpp_1_1Modulator__ND.html#45916df32ce60b4c286367501482b441">M</a></td></tr>
148
149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of modulation symbols along each dimension. <br></td></tr>
150<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf19a4c13454739dfa68d0b9f6a85211"></a><!-- doxytag: member="itpp::Modulator_ND::bitmap" ref="cf19a4c13454739dfa68d0b9f6a85211" args="" -->
151<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>
152
153<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bit mapping table (one table per dimension). <br></td></tr>
154<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="123a047e221467e2f63b4e353963b1a7"></a><!-- doxytag: member="itpp::Modulator_ND::bits2symbols" ref="123a047e221467e2f63b4e353963b1a7" args="" -->
155<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>
156
157<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>
158</table>
159<hr><a name="_details"></a><h2>Detailed Description</h2>
160Base class for an N-dimensional (ND) vector (MIMO) modulator.
161<p>
162See <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> class for examples.<p>
163<dl class="note" compact><dt><b>Note:</b></dt><dd>Can also be used for scalar modulation/demodulation as an alternative to <code>Modulator_1D</code> or <code>Modulator_2D</code>. Mixed use of <code>Modulator_1D</code> or <code>Modulator_2D</code> and <code><a class="el" href="classitpp_1_1Modulator__ND.html" title="Base class for an N-dimensional (ND) vector (MIMO) modulator.">Modulator_ND</a></code> is <b>not advised</b>. </dd></dl>
164<hr><h2>Member Enumeration Documentation</h2>
165<a class="anchor" name="6e3b4c745f904cdb34301aeb4cc03035"></a><!-- doxytag: member="itpp::Modulator_ND::Soft_Demod_Method" ref="6e3b4c745f904cdb34301aeb4cc03035" args="" -->
166<div class="memitem">
167<div class="memproto">
168      <table class="memname">
169        <tr>
170          <td class="memname">enum <a class="el" href="classitpp_1_1Modulator__ND.html#6e3b4c745f904cdb34301aeb4cc03035">itpp::Modulator_ND::Soft_Demod_Method</a>          </td>
171        </tr>
172      </table>
173</div>
174<div class="memdoc">
175
176<p>
177Soft demodulation method.
178<p>
179<dl compact><dt><b>Enumerator: </b></dt><dd>
180<table border="0" cellspacing="2" cellpadding="0">
181<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>
182Log-MAP demodulation by "brute-force" enumeration of all points. </td></tr>
183<tr><td valign="top"><em><a class="anchor" name="6e3b4c745f904cdb34301aeb4cc03035d5798fd18f93f399475392b8aee09cba"></a><!-- doxytag: member="ZF_LOGMAP" ref="6e3b4c745f904cdb34301aeb4cc03035d5798fd18f93f399475392b8aee09cba" args="" -->ZF_LOGMAP</em>&nbsp;</td><td>
184Zero-Forcing Log-MAP approximated demodulation. </td></tr>
185</table>
186</dl>
187
188</div>
189</div><p>
190<hr><h2>Member Function Documentation</h2>
191<a class="anchor" name="6bb417318b8105a78db7ad2c618283ce"></a><!-- doxytag: member="itpp::Modulator_ND::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)" -->
192<div class="memitem">
193<div class="memproto">
194      <table class="memname">
195        <tr>
196          <td class="memname">void itpp::Modulator_ND::update_LLR           </td>
197          <td>(</td>
198          <td class="paramtype">const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;&nbsp;</td>
199          <td class="paramname"> <em>logP_apriori</em>, </td>
200        </tr>
201        <tr>
202          <td class="paramkey"></td>
203          <td></td>
204          <td class="paramtype">int&nbsp;</td>
205          <td class="paramname"> <em>s</em>, </td>
206        </tr>
207        <tr>
208          <td class="paramkey"></td>
209          <td></td>
210          <td class="paramtype">QLLR&nbsp;</td>
211          <td class="paramname"> <em>scaled_norm</em>, </td>
212        </tr>
213        <tr>
214          <td class="paramkey"></td>
215          <td></td>
216          <td class="paramtype">int&nbsp;</td>
217          <td class="paramname"> <em>j</em>, </td>
218        </tr>
219        <tr>
220          <td class="paramkey"></td>
221          <td></td>
222          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
223          <td class="paramname"> <em>num</em>, </td>
224        </tr>
225        <tr>
226          <td class="paramkey"></td>
227          <td></td>
228          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
229          <td class="paramname"> <em>denom</em></td><td>&nbsp;</td>
230        </tr>
231        <tr>
232          <td></td>
233          <td>)</td>
234          <td></td><td></td><td><code> [protected]</code></td>
235        </tr>
236      </table>
237</div>
238<div class="memdoc">
239
240<p>
241Update LLR, for scalar channel (for internal use).
242<p>
243This function updates the numerator and denominator in the expression <p class="formulaDsp">
244<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">
245<p>
246<p>
247<dl compact><dt><b>Parameters:</b></dt><dd>
248  <table border="0" cellspacing="2" cellpadding="0">
249    <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>
250    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>s</em>&nbsp;</td><td>Symbol </td></tr>
251    <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>
252    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>j</em>&nbsp;</td><td>Channel index (dimension) </td></tr>
253    <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>
254    <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>
255  </table>
256</dl>
257
258<p>References <a class="el" href="modulator__nd_8h-source.html#l00100">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">k</a>, and <a class="el" href="modulator__nd_8h-source.html#l00094">llrcalc</a>.</p>
259
260</div>
261</div><p>
262<a class="anchor" name="48975e0d26dac075e1f448bdca15ca87"></a><!-- doxytag: member="itpp::Modulator_ND::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)" -->
263<div class="memitem">
264<div class="memproto">
265      <table class="memname">
266        <tr>
267          <td class="memname">void itpp::Modulator_ND::update_LLR           </td>
268          <td>(</td>
269          <td class="paramtype">const <a class="el" href="classitpp_1_1Array.html">Array</a>&lt; QLLRvec &gt; &amp;&nbsp;</td>
270          <td class="paramname"> <em>logP_apriori</em>, </td>
271        </tr>
272        <tr>
273          <td class="paramkey"></td>
274          <td></td>
275          <td class="paramtype">const ivec &amp;&nbsp;</td>
276          <td class="paramname"> <em>s</em>, </td>
277        </tr>
278        <tr>
279          <td class="paramkey"></td>
280          <td></td>
281          <td class="paramtype">QLLR&nbsp;</td>
282          <td class="paramname"> <em>scaled_norm</em>, </td>
283        </tr>
284        <tr>
285          <td class="paramkey"></td>
286          <td></td>
287          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
288          <td class="paramname"> <em>num</em>, </td>
289        </tr>
290        <tr>
291          <td class="paramkey"></td>
292          <td></td>
293          <td class="paramtype">QLLRvec &amp;&nbsp;</td>
294          <td class="paramname"> <em>denom</em></td><td>&nbsp;</td>
295        </tr>
296        <tr>
297          <td></td>
298          <td>)</td>
299          <td></td><td></td><td><code> [protected]</code></td>
300        </tr>
301      </table>
302</div>
303<div class="memdoc">
304
305<p>
306Update LLR (for internal use).
307<p>
308This function updates the numerator and denominator in the expression <p class="formulaDsp">
309<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">
310<p>
311<p>
312<dl compact><dt><b>Parameters:</b></dt><dd>
313  <table border="0" cellspacing="2" cellpadding="0">
314    <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>
315    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>s</em>&nbsp;</td><td>Symbol vector </td></tr>
316    <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>
317    <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>
318    <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>
319  </table>
320</dl>
321
322<p>References <a class="el" href="modulator__nd_8h-source.html#l00100">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">k</a>, <a class="el" href="modulator__nd_8h-source.html#l00094">llrcalc</a>, and <a class="el" href="modulator__nd_8h-source.html#l00092">nt</a>.</p>
323
324<p>Referenced by <a class="el" href="modulator__nd_8cpp-source.html#l00413">itpp::Modulator_NCD::demodulate_soft_bits()</a>, and <a class="el" href="modulator__nd_8cpp-source.html#l00193">itpp::Modulator_NRD::demodulate_soft_bits()</a>.</p>
325
326</div>
327</div><p>
328<hr>The documentation for this class was generated from the following files:<ul>
329<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>
330</div>
331<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:19 2009 for mixpp by&nbsp;
332<a href="http://www.doxygen.org/index.html">
333<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
334</body>
335</html>
Note: See TracBrowser for help on using the browser.