root/doc/html/commfunc_8cpp.html @ 353

Revision 353, 7.6 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: commfunc.cpp File 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><a href="annotated.html"><span>Classes</span></a></li>
56      <li class="current"><a href="files.html"><span>Files</span></a></li>
57    </ul>
58  </div>
59  <div class="tabs">
60    <ul>
61      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
62      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
63    </ul>
64  </div>
65</div>
66<div class="contents">
67<h1>commfunc.cpp File Reference</h1>Implementation of some specific functions useful in communications. 
68<a href="#_details">More...</a>
69<p>
70<code>#include &lt;<a class="el" href="commfunc_8h-source.html">itpp/comm/commfunc.h</a>&gt;</code><br>
71<code>#include &lt;<a class="el" href="converters_8h-source.html">itpp/base/converters.h</a>&gt;</code><br>
72<code>#include &lt;<a class="el" href="specmat_8h-source.html">itpp/base/specmat.h</a>&gt;</code><br>
73<code>#include &lt;<a class="el" href="matfunc_8h-source.html">itpp/base/matfunc.h</a>&gt;</code><br>
74<code>#include &lt;<a class="el" href="binary_8h-source.html">itpp/base/binary.h</a>&gt;</code><br>
75<code>#include &lt;<a class="el" href="sort_8h-source.html">itpp/base/sort.h</a>&gt;</code><br>
76<table border="0" cellpadding="0" cellspacing="0">
77<tr><td></td></tr>
78<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
79<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g568738607726089989baf278058899fd"></a><!-- doxytag: member="commfunc.cpp::graycode" ref="g568738607726089989baf278058899fd" args="(int m)" -->
80<a class="el" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69">bmat</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__misccommfunc.html#g568738607726089989baf278058899fd">itpp::graycode</a> (int m)</td></tr>
81
82<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generate Gray code of blocklength m.<p>
83The codes are contained as binary codewords {0,1} in the rows of the returned matrix. See also the <code>gray()</code> function in <code>math/scalfunc.h</code>. <br></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g3815994ee069b1911dec1fc6afc350c8"></a><!-- doxytag: member="commfunc.cpp::hamming_distance" ref="g3815994ee069b1911dec1fc6afc350c8" args="(const bvec &amp;a, const bvec &amp;b)" -->
85int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__misccommfunc.html#g3815994ee069b1911dec1fc6afc350c8">itpp::hamming_distance</a> (const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &amp;a, const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &amp;b)</td></tr>
86
87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculate the Hamming distance between <em>a</em> and <em>b</em>. <br></td></tr>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g1661dfd39dc7327de562d3eca3d113aa"></a><!-- doxytag: member="commfunc.cpp::weight" ref="g1661dfd39dc7327de562d3eca3d113aa" args="(const bvec &amp;a)" -->
89int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__misccommfunc.html#g1661dfd39dc7327de562d3eca3d113aa">itpp::weight</a> (const <a class="el" href="classitpp_1_1Vec.html#e10151f44bbabf17b670a9493d8088cf">bvec</a> &amp;a)</td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculate the Hamming weight of <em>a</em>. <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__misccommfunc.html#gc2ed3971292517906bb3fa47e9bfb061">itpp::waterfilling</a> (const <a class="el" href="classitpp_1_1Vec.html#02e1bb55f60f3c2eb7a020eb1c2cfcf4">vec</a> &amp;alpha, double P)</td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the water-filling solution<p>
95This function computes the solution of the water-filling problem <p class="formulaDsp">
96<img class="formulaDsp" alt="\[ \max_{p_0,...,p_{n-1}} \sum_{i=0}^{n-1} \log\left(1+p_i\alpha_i\right) \]" src="form_237.png">
97<p>
98 subject to <p class="formulaDsp">
99<img class="formulaDsp" alt="\[ \sum_{i=0}^{n-1} p_i \le P \]" src="form_238.png">
100<p>
101<a href="group__misccommfunc.html#gc2ed3971292517906bb3fa47e9bfb061"></a><br></td></tr>
102</table>
103<hr><a name="_details"></a><h2>Detailed Description</h2>
104Implementation of some specific functions useful in communications.
105<p>
106<dl class="author" compact><dt><b>Author:</b></dt><dd>Tony Ottosson and Erik G. Larsson</dd></dl>
107-------------------------------------------------------------------------<p>
108Copyright (C) 1995-2008 (see AUTHORS file for a list of contributors)<p>
109This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.<p>
110IT++ is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<p>
111IT++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p>
112You should have received a copy of the GNU General Public License along with IT++. If not, see &lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.<p>
113------------------------------------------------------------------------- </div>
114<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:13 2009 for mixpp by&nbsp;
115<a href="http://www.doxygen.org/index.html">
116<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
117</body>
118</html>
Note: See TracBrowser for help on using the browser.