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: egolay.h Source File</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 | <!-- |
---|
10 | function 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 | } |
---|
22 | function 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 | } |
---|
46 | window.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 Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related 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 List</span></a></li> |
---|
62 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
63 | </ul> |
---|
64 | </div> |
---|
65 | <h1>egolay.h</h1><a href="egolay_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
---|
66 | <a name="l00029"></a>00029 <span class="preprocessor">#ifndef EGOLAY_H</span> |
---|
67 | <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define EGOLAY_H</span> |
---|
68 | <a name="l00031"></a>00031 <span class="preprocessor"></span> |
---|
69 | <a name="l00032"></a>00032 <span class="preprocessor">#include <<a class="code" href="vec_8h.html" title="Templated Vector Class Definitions.">itpp/base/vec.h</a>></span> |
---|
70 | <a name="l00033"></a>00033 <span class="preprocessor">#include <<a class="code" href="mat_8h.html" title="Matrix Class Definitions.">itpp/base/mat.h</a>></span> |
---|
71 | <a name="l00034"></a>00034 <span class="preprocessor">#include <<a class="code" href="channel__code_8h.html" title="Channel Code class virtual interface.">itpp/comm/channel_code.h</a>></span> |
---|
72 | <a name="l00035"></a>00035 |
---|
73 | <a name="l00036"></a>00036 |
---|
74 | <a name="l00037"></a>00037 <span class="keyword">namespace </span>itpp |
---|
75 | <a name="l00038"></a>00038 { |
---|
76 | <a name="l00039"></a>00039 |
---|
77 | <a name="l00051"></a><a class="code" href="classitpp_1_1Extended__Golay.html">00051</a> <span class="keyword">class </span><a class="code" href="classitpp_1_1Extended__Golay.html" title="Extended Golay code (24,12,8).">Extended_Golay</a> : <span class="keyword">public</span> <a class="code" href="classitpp_1_1Channel__Code.html" title="Generic Channel Code class.">Channel_Code</a> |
---|
78 | <a name="l00052"></a>00052 { |
---|
79 | <a name="l00053"></a>00053 <span class="keyword">public</span>: |
---|
80 | <a name="l00055"></a>00055 <a class="code" href="classitpp_1_1Extended__Golay.html#122575a88fc60b28892ca444e3af80ed" title="Constructor.">Extended_Golay</a>(); |
---|
81 | <a name="l00057"></a><a class="code" href="classitpp_1_1Extended__Golay.html#d414de784c7d645e418a643a6c0ce9f1">00057</a> <span class="keyword">virtual</span> <a class="code" href="classitpp_1_1Extended__Golay.html#d414de784c7d645e418a643a6c0ce9f1" title="Destructor.">~Extended_Golay</a>() { } |
---|
82 | <a name="l00058"></a>00058 |
---|
83 | <a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1Extended__Golay.html#5ac3d9d36ea970ad2236129370d2ebaf" title="Encoder. Will truncate some bits if not length = integer * 12.">encode</a>(<span class="keyword">const</span> bvec &uncoded_bits, bvec &coded_bits); |
---|
84 | <a name="l00062"></a>00062 <span class="keyword">virtual</span> bvec <a class="code" href="classitpp_1_1Extended__Golay.html#5ac3d9d36ea970ad2236129370d2ebaf" title="Encoder. Will truncate some bits if not length = integer * 12.">encode</a>(<span class="keyword">const</span> bvec &uncoded_bits); |
---|
85 | <a name="l00063"></a>00063 |
---|
86 | <a name="l00065"></a>00065 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1Extended__Golay.html#2cf29cba49dee11ff6459b8eb21b2a8f" title="Decoder. Will truncate some bits if not length = integer * 24.">decode</a>(<span class="keyword">const</span> bvec &coded_bits, bvec &decoded_bits); |
---|
87 | <a name="l00067"></a>00067 <span class="keyword">virtual</span> bvec <a class="code" href="classitpp_1_1Extended__Golay.html#2cf29cba49dee11ff6459b8eb21b2a8f" title="Decoder. Will truncate some bits if not length = integer * 24.">decode</a>(<span class="keyword">const</span> bvec &coded_bits); |
---|
88 | <a name="l00068"></a>00068 |
---|
89 | <a name="l00069"></a>00069 <span class="comment">// Soft-decision decoding is not implemented</span> |
---|
90 | <a name="l00070"></a>00070 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitpp_1_1Extended__Golay.html#2cf29cba49dee11ff6459b8eb21b2a8f" title="Decoder. Will truncate some bits if not length = integer * 24.">decode</a>(<span class="keyword">const</span> vec &received_signal, bvec &output); |
---|
91 | <a name="l00071"></a>00071 <span class="keyword">virtual</span> bvec <a class="code" href="classitpp_1_1Extended__Golay.html#2cf29cba49dee11ff6459b8eb21b2a8f" title="Decoder. Will truncate some bits if not length = integer * 24.">decode</a>(<span class="keyword">const</span> vec &received_signal); |
---|
92 | <a name="l00072"></a>00072 |
---|
93 | <a name="l00074"></a><a class="code" href="classitpp_1_1Extended__Golay.html#de58a8cbd4503d9785fefb09e5a1cac5">00074</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classitpp_1_1Extended__Golay.html#de58a8cbd4503d9785fefb09e5a1cac5" title="Get the code rate.">get_rate</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0.5; }; |
---|
94 | <a name="l00075"></a>00075 |
---|
95 | <a name="l00077"></a><a class="code" href="classitpp_1_1Extended__Golay.html#a0dcaa032503d2e32336651ca6095581">00077</a> <a class="code" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69" title="bin matrix">bmat</a> <a class="code" href="classitpp_1_1Extended__Golay.html#a0dcaa032503d2e32336651ca6095581" title="Gets the generator matrix for the code (also the parity check matrix).">get_G</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> G; } |
---|
96 | <a name="l00078"></a>00078 <span class="keyword">private</span>: |
---|
97 | <a name="l00079"></a>00079 <a class="code" href="mat_8h.html#f90acd1af41bf2d1d8a4bb23662fff69" title="bin matrix">bmat</a> B, G; |
---|
98 | <a name="l00080"></a>00080 }; |
---|
99 | <a name="l00081"></a>00081 |
---|
100 | <a name="l00082"></a>00082 } <span class="comment">// namespace itpp</span> |
---|
101 | <a name="l00083"></a>00083 |
---|
102 | <a name="l00084"></a>00084 <span class="preprocessor">#endif // #ifndef EGOLAY_H</span> |
---|
103 | </pre></div></div> |
---|
104 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:11 2009 for mixpp by |
---|
105 | <a href="http://www.doxygen.org/index.html"> |
---|
106 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
107 | </body> |
---|
108 | </html> |
---|