Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > ae19f57cd4e306abd5716199a310070b > files > 2798

gnuradio-doc-3.2.2-3.fc13.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GNU Radio 3.2.2 C++ API: trellis_metrics_c Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>trellis_metrics_c Class Reference<br/>
<small>
[<a class="el" href="group__coding__blk.html">Information Coding and Decoding</a>]</small>
</h1><!-- doxytag: class="trellis_metrics_c" --><!-- doxytag: inherits="gr_block" -->
<p>Evaluate metrics for use by the Viterbi algorithm.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="trellis__metrics__c_8h_source.html">trellis_metrics_c.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for trellis_metrics_c:</div>
<div class="dynsection">
<div class="center"><img src="classtrellis__metrics__c__inherit__graph.png" border="0" usemap="#trellis__metrics__c_inherit__map" alt="Inheritance graph"/></div>
<map name="trellis__metrics__c_inherit__map" id="trellis__metrics__c_inherit__map">
<area shape="rect" id="node2" href="classgr__block.html" title="The abstract base class for all &#39;terminal&#39; processing blocks.A signal processing..." alt="" coords="29,83,99,112"/><area shape="rect" id="node4" href="classgr__basic__block.html" title="The abstract base class for all signal processing blocks.Basic blocks are the bare..." alt="" coords="9,5,119,35"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classtrellis__metrics__c-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a9954464f33f5071cfa32b778bce8dd1c">O</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a68805b76a9f526972c736ee6430c4358">D</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="trellis__metric__type_8h.html#a730999483daebb08342eb009b2c77ad1">trellis_metric_type_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a7293d59e62cad0f7cc9c85bc5833efb9">TYPE</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; <a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a75b8ed172c561102653b93198ded866f">TABLE</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a36d9b09f74270e86a2c57c9f3cff14f8">set_TABLE</a> (const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; <a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a> &gt; &amp;table)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a4400a3c585522d66666e9024130359d5">forecast</a> (int noutput_items, <a class="el" href="classstd_1_1vector.html">gr_vector_int</a> &amp;ninput_items_required)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Estimate input requirements given output request.  <a href="#a4400a3c585522d66666e9024130359d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#aefc019310c8151cab2802d4fe8fc78ef">general_work</a> (int noutput_items, <a class="el" href="classstd_1_1vector.html">gr_vector_int</a> &amp;ninput_items, <a class="el" href="classstd_1_1vector.html">gr_vector_const_void_star</a> &amp;input_items, <a class="el" href="classstd_1_1vector.html">gr_vector_void_star</a> &amp;output_items)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">compute output items from input items  <a href="#aefc019310c8151cab2802d4fe8fc78ef"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classboost_1_1shared__ptr.html">trellis_metrics_c_sptr</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtrellis__metrics__c.html#a0e0d44932561da33a80c5ee72db55f81">trellis_make_metrics_c</a> (int O, int D, const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; <a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a> &gt; &amp;TABLE, <a class="el" href="trellis__metric__type_8h.html#a730999483daebb08342eb009b2c77ad1">trellis_metric_type_t</a> TYPE)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Evaluate metrics for use by the Viterbi algorithm. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a68805b76a9f526972c736ee6430c4358"></a><!-- doxytag: member="trellis_metrics_c::D" ref="a68805b76a9f526972c736ee6430c4358" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int trellis_metrics_c::D </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4400a3c585522d66666e9024130359d5"></a><!-- doxytag: member="trellis_metrics_c::forecast" ref="a4400a3c585522d66666e9024130359d5" args="(int noutput_items, gr_vector_int &amp;ninput_items_required)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void trellis_metrics_c::forecast </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>noutput_items</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">gr_vector_int</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ninput_items_required</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Estimate input requirements given output request. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>noutput_items</em>&nbsp;</td><td>number of output items to produce </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ninput_items_required</em>&nbsp;</td><td>number of input items required on each input stream</td></tr>
  </table>
  </dd>
</dl>
<p>Given a request to product <code>noutput_items</code>, estimate the number of data items required on each input stream. The estimate doesn't have to be exact, but should be close. </p>

<p>Reimplemented from <a class="el" href="classgr__block.html#aa1f2518b5c97126bb015adb9e2027f4a">gr_block</a>.</p>

</div>
</div>
<a class="anchor" id="aefc019310c8151cab2802d4fe8fc78ef"></a><!-- doxytag: member="trellis_metrics_c::general_work" ref="aefc019310c8151cab2802d4fe8fc78ef" args="(int noutput_items, gr_vector_int &amp;ninput_items, gr_vector_const_void_star &amp;input_items, gr_vector_void_star &amp;output_items)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int trellis_metrics_c::general_work </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>noutput_items</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">gr_vector_int</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ninput_items</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">gr_vector_const_void_star</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>input_items</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">gr_vector_void_star</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>output_items</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>compute output items from input items </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>noutput_items</em>&nbsp;</td><td>number of output items to write on each output stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ninput_items</em>&nbsp;</td><td>number of input items available on each input stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>input_items</em>&nbsp;</td><td>vector of pointers to the input items, one entry per input stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>output_items</em>&nbsp;</td><td>vector of pointers to the output items, one entry per output stream</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of items actually written to each output stream, or -1 on EOF. It is OK to return a value less than noutput_items. -1 &lt;= return value &lt;= noutput_items</dd></dl>
<p>general_work must call consume or consume_each to indicate how many items were consumed on each input stream. </p>

<p>Implements <a class="el" href="classgr__block.html#a137b93d87dc83bbdb6369d33f4ea8197">gr_block</a>.</p>

</div>
</div>
<a class="anchor" id="a9954464f33f5071cfa32b778bce8dd1c"></a><!-- doxytag: member="trellis_metrics_c::O" ref="a9954464f33f5071cfa32b778bce8dd1c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int trellis_metrics_c::O </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a36d9b09f74270e86a2c57c9f3cff14f8"></a><!-- doxytag: member="trellis_metrics_c::set_TABLE" ref="a36d9b09f74270e86a2c57c9f3cff14f8" args="(const std::vector&lt; gr_complex &gt; &amp;table)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void trellis_metrics_c::set_TABLE </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; <a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>table</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a75b8ed172c561102653b93198ded866f"></a><!-- doxytag: member="trellis_metrics_c::TABLE" ref="a75b8ed172c561102653b93198ded866f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt;<a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a>&gt; trellis_metrics_c::TABLE </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7293d59e62cad0f7cc9c85bc5833efb9"></a><!-- doxytag: member="trellis_metrics_c::TYPE" ref="a7293d59e62cad0f7cc9c85bc5833efb9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="trellis__metric__type_8h.html#a730999483daebb08342eb009b2c77ad1">trellis_metric_type_t</a> trellis_metrics_c::TYPE </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a0e0d44932561da33a80c5ee72db55f81"></a><!-- doxytag: member="trellis_metrics_c::trellis_make_metrics_c" ref="a0e0d44932561da33a80c5ee72db55f81" args="(int O, int D, const std::vector&lt; gr_complex &gt; &amp;TABLE, trellis_metric_type_t TYPE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classboost_1_1shared__ptr.html">trellis_metrics_c_sptr</a> trellis_make_metrics_c </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>O</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>D</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; <a class="el" href="gr__complex_8h.html#aec4bfe41433369afae9327f1b0bc9109">gr_complex</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>TABLE</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="trellis__metric__type_8h.html#a730999483daebb08342eb009b2c77ad1">trellis_metric_type_t</a>&nbsp;</td>
          <td class="paramname"> <em>TYPE</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="trellis__metrics__c_8h_source.html">trellis_metrics_c.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>