Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 3833

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>mrpt::bayes::CParticleFilterData Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacemrpt.html">mrpt</a>      </li>
      <li class="navelem"><a class="el" href="namespacemrpt_1_1bayes.html">bayes</a>      </li>
      <li class="navelem"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html">CParticleFilterData</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">mrpt::bayes::CParticleFilterData Class Reference<div class="ingroups"><a class="el" href="group__mrpt__base__grp.html">[mrpt-base]</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="mrpt::bayes::CParticleFilterData" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This template class declares the array of particles and its internal data, managing some memory-related issues and providing an easy implementation of virtual methods required for implementing a <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html" title="This virtual class defines the interface that any particles based PDF class must implement in order t...">CParticleFilterCapable</a>. </p>
<p>By adding <a class="el" href="_c_particle_filter_data_8h.html#a1dab657a0f7d1fe1f4821dbbc2b4ea60" title="This must be placed within the declaration of classes inheriting from both CParticleFilterData and CP...">IMPLEMENT_PARTICLE_FILTER_CAPABLE(T)</a> to the body of the declaration of classes inheriting from both <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="This template class declares the array of particles and its internal data, managing some memory-relat...">CParticleFilterData</a> and <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html" title="This virtual class defines the interface that any particles based PDF class must implement in order t...">CParticleFilterCapable</a>, the following pure virtual methods are automatically implemented (the param T must be equal to the argument of the template <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="This template class declares the array of particles and its internal data, managing some memory-relat...">CParticleFilterData</a>).</p>
<ul>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#a6ca16ca0217cdac4b586df5df9cdaea2" title="Access to i&#39;th particle (logarithm) weight, where first one is index 0.">CParticleFilterCapable::getW</a></li>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#aecb3d0c17d29b4027a7eede17d2e0b8e" title="Modifies i&#39;th particle (logarithm) weight, where first one is index 0.">CParticleFilterCapable::setW</a></li>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#a70664baf3816bce82f06933270a5c8d1" title="Get the m_particles count.">CParticleFilterCapable::particlesCount</a></li>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#a675b747939b1945bd16d6cee3f968c14" title="Normalize the (logarithmic) weights, such as the maximum weight is zero.">CParticleFilterCapable::normalizeWeights</a></li>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#afc87a617ea5582e4ba80bb3c065c4785" title="Returns the normalized ESS (Estimated Sample Size), in the range [0,1].">CParticleFilterCapable::ESS</a></li>
<li><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html#a9f8e1f63a625dedcc5e5209dde04203f" title="Performs the substitution for internal use of resample in particle filter algorithm, don&#39;t call it directly.">CParticleFilterCapable::performSubstitution</a></li>
</ul>
<p>Since <a class="el" href="structmrpt_1_1bayes_1_1_c_probability_particle.html" title="A template class for holding a the data and the weight of a particle.">CProbabilityParticle</a> implements all the required operators, the member "m_particles" can be safely copied with "=" or copy constructor operators and new objects will be created internally instead of copying the internal pointers, which would lead to memory corruption.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter.html" title="This class acts as a common interface to the different interfaces (see CParticleFilter::TParticleFilt...">CParticleFilter</a>, <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_capable.html" title="This virtual class defines the interface that any particles based PDF class must implement in order t...">CParticleFilterCapable</a>, <a class="el" href="_c_particle_filter_data_8h.html#a1dab657a0f7d1fe1f4821dbbc2b4ea60" title="This must be placed within the declaration of classes inheriting from both CParticleFilterData and CP...">IMPLEMENT_PARTICLE_FILTER_CAPABLE</a> </dd></dl>
</div>
<p><code>#include &lt;<a class="el" href="_c_particle_filter_data_8h_source.html">mrpt/bayes/CParticleFilterData.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for mrpt::bayes::CParticleFilterData:</div>
<div class="dyncontent">
<div class="center"><img src="classmrpt_1_1bayes_1_1_c_particle_filter_data__inherit__graph.png" border="0" usemap="#mrpt_1_1bayes_1_1_c_particle_filter_data_inherit__map" alt="Inheritance graph"/></div>
<map name="mrpt_1_1bayes_1_1_c_particle_filter_data_inherit__map" id="mrpt_1_1bayes_1_1_c_particle_filter_data_inherit__map">
<area shape="rect" id="node3" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="mrpt::bayes::CParticleFilterData\&lt; CPose3D \&gt;" alt="" coords="453,5,744,32"/><area shape="rect" id="node9" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="mrpt::bayes::CParticleFilterData\&lt; CPose2D \&gt;" alt="" coords="453,56,744,83"/><area shape="rect" id="node15" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="mrpt::bayes::CParticleFilterData\&lt; TSimple3DPoint \&gt;" alt="" coords="434,107,763,133"/><area shape="rect" id="node19" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="mrpt::bayes::CParticleFilterData\&lt; CLSLAMParticleData \&gt;" alt="" coords="419,157,778,184"/><area shape="rect" id="node23" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html" title="mrpt::bayes::CParticleFilterData\&lt; CRBPFParticleData \&gt;" alt="" coords="423,208,775,235"/><area shape="rect" id="node5" href="classmrpt_1_1poses_1_1_c_pose3_d_p_d_f_particles.html" title="Declares a class that represents a Probability Density function (PDF) of a 3D pose." alt="" coords="841,5,1076,32"/><area shape="rect" id="node7" href="classmrpt_1_1slam_1_1_c_monte_carlo_localization3_d.html" title="Declares a class that represents a Probability Density Function (PDF) over a 3D pose (x..." alt="" coords="1139,5,1394,32"/><area shape="rect" id="node11" href="classmrpt_1_1poses_1_1_c_pose_p_d_f_particles.html" title="Declares a class that represents a Probability Density Function (PDF) over a 2D pose (x..." alt="" coords="850,56,1067,83"/><area shape="rect" id="node13" href="classmrpt_1_1slam_1_1_c_monte_carlo_localization2_d.html" title="Declares a class that represents a Probability Density Function (PDF) over a 2D pose (x..." alt="" coords="1139,56,1394,83"/><area shape="rect" id="node17" href="classmrpt_1_1poses_1_1_c_point_p_d_f_particles.html" title="A probability distribution of a 2D/3D point, represented as a set of random samples (particles)..." alt="" coords="850,107,1067,133"/><area shape="rect" id="node21" href="classmrpt_1_1hmtslam_1_1_c_local_metric_hypothesis.html" title="This class is used in HMT&#45;SLAM to represent each of the Local Metric Hypotheses (LMHs)." alt="" coords="830,157,1087,184"/><area shape="rect" id="node25" href="classmrpt_1_1slam_1_1_c_multi_metric_map_p_d_f.html" title="Declares a class that represents a Rao&#45;Blackwellized set of particles for solving the SLAM problem (T..." alt="" coords="849,208,1068,235"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classmrpt_1_1bayes_1_1_c_particle_filter_data-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a95d1ef05087b7dc214aa7d8550a69e2b">CParticleDataContent</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the type inside the corresponding CParticleData class.  <a href="#a95d1ef05087b7dc214aa7d8550a69e2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structmrpt_1_1bayes_1_1_c_probability_particle.html">CProbabilityParticle</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">CParticleData</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Use this to refer to each element in the m_particles array.  <a href="#a9a69200b93ad7b3c528362d3c1a35ea4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classstd_1_1deque.html">std::deque</a>&lt; <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">CParticleData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a455efc0962577f042b38590f36583537">CParticleList</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Use this type to refer to the list of particles m_particles.  <a href="#a455efc0962577f042b38590f36583537"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a18608b3720c56d101a17cc60ee4a81ba">CParticleFilterData</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a18608b3720c56d101a17cc60ee4a81ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#aec1870d0f4607da2c6cb83c4325005a9">clearParticles</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Free the memory of all the particles and reset the array "m_particles" to length zero.  <a href="#aec1870d0f4607da2c6cb83c4325005a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#aeb290a2561028d5f039417601516c94b">~CParticleFilterData</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor.  <a href="#aeb290a2561028d5f039417601516c94b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#ac5571368ccef88d4c205b43b9f6d630d">writeParticlesToStream</a> (<a class="el" href="classmrpt_1_1utils_1_1_c_stream.html">utils::CStream</a> &amp;out) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dumps the sequence of particles and their weights to a stream (requires T implementing CSerializable).  <a href="#ac5571368ccef88d4c205b43b9f6d630d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#ad32e2f80aeab31b21184d7e1bde687bc">readParticlesFromStream</a> (<a class="el" href="classmrpt_1_1utils_1_1_c_stream.html">utils::CStream</a> &amp;in)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the sequence of particles and their weights from a stream (requires T implementing CSerializable).  <a href="#ad32e2f80aeab31b21184d7e1bde687bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a1197013292ffd4af22c539cac3304263">getWeights</a> (<a class="el" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">vector_double</a> &amp;out_logWeights) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a vector with the sequence of the logaritmic weights of all the samples.  <a href="#a1197013292ffd4af22c539cac3304263"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">CParticleData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a814fc6f819c7e213c036467c14fbba66">getMostLikelyParticle</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the particle with the highest weight.  <a href="#a814fc6f819c7e213c036467c14fbba66"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a455efc0962577f042b38590f36583537">CParticleList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#af8bb2dfdacf54929213c8f905cdec000">m_particles</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The array of particles.  <a href="#af8bb2dfdacf54929213c8f905cdec000"></a><br/></td></tr>
</table>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a9a69200b93ad7b3c528362d3c1a35ea4"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::CParticleData" ref="a9a69200b93ad7b3c528362d3c1a35ea4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structmrpt_1_1bayes_1_1_c_probability_particle.html">CProbabilityParticle</a>&lt;T&gt; <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">mrpt::bayes::CParticleFilterData::CParticleData</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Use this to refer to each element in the m_particles array. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00061">61</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a95d1ef05087b7dc214aa7d8550a69e2b"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::CParticleDataContent" ref="a95d1ef05087b7dc214aa7d8550a69e2b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef T <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a95d1ef05087b7dc214aa7d8550a69e2b">mrpt::bayes::CParticleFilterData::CParticleDataContent</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is the type inside the corresponding CParticleData class. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00060">60</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a455efc0962577f042b38590f36583537"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::CParticleList" ref="a455efc0962577f042b38590f36583537" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classstd_1_1deque.html">std::deque</a>&lt;<a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">CParticleData</a>&gt; <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a455efc0962577f042b38590f36583537">mrpt::bayes::CParticleFilterData::CParticleList</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Use this type to refer to the list of particles m_particles. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00062">62</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a18608b3720c56d101a17cc60ee4a81ba"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::CParticleFilterData" ref="a18608b3720c56d101a17cc60ee4a81ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mrpt::bayes::CParticleFilterData::CParticleFilterData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00067">67</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="aeb290a2561028d5f039417601516c94b"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::~CParticleFilterData" ref="aeb290a2561028d5f039417601516c94b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual mrpt::bayes::CParticleFilterData::~CParticleFilterData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Virtual destructor. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00083">83</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aec1870d0f4607da2c6cb83c4325005a9"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::clearParticles" ref="aec1870d0f4607da2c6cb83c4325005a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::bayes::CParticleFilterData::clearParticles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Free the memory of all the particles and reset the array "m_particles" to length zero. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00072">72</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

<p>Referenced by <a class="el" href="_c_particle_filter_data_8h_source.html#l00083">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::~CParticleFilterData()</a>, and <a class="el" href="_c_particle_filter_data_8h_source.html#l00107">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::readParticlesFromStream()</a>.</p>

</div>
</div>
<a class="anchor" id="a814fc6f819c7e213c036467c14fbba66"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::getMostLikelyParticle" ref="a814fc6f819c7e213c036467c14fbba66" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a9a69200b93ad7b3c528362d3c1a35ea4">CParticleData</a>* mrpt::bayes::CParticleFilterData::getMostLikelyParticle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the particle with the highest weight. </p>

<p>Reimplemented in <a class="el" href="classmrpt_1_1poses_1_1_c_pose_p_d_f_particles.html#ac3538d2e750e13c6f618a63e341b101b">mrpt::poses::CPosePDFParticles</a>, and <a class="el" href="classmrpt_1_1poses_1_1_c_pose3_d_p_d_f_particles.html#abd05e959c40d1c063e41cb1e21fbb491">mrpt::poses::CPose3DPDFParticles</a>.</p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00140">140</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1197013292ffd4af22c539cac3304263"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::getWeights" ref="a1197013292ffd4af22c539cac3304263" args="(vector_double &amp;out_logWeights) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::bayes::CParticleFilterData::getWeights </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">vector_double</a> &amp;&#160;</td>
          <td class="paramname"><em>out_logWeights</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a vector with the sequence of the logaritmic weights of all the samples. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00127">127</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad32e2f80aeab31b21184d7e1bde687bc"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::readParticlesFromStream" ref="ad32e2f80aeab31b21184d7e1bde687bc" args="(utils::CStream &amp;in)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::bayes::CParticleFilterData::readParticlesFromStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmrpt_1_1utils_1_1_c_stream.html">utils::CStream</a> &amp;&#160;</td>
          <td class="paramname"><em>in</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reads the sequence of particles and their weights from a stream (requires T implementing CSerializable). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#ac5571368ccef88d4c205b43b9f6d630d" title="Dumps the sequence of particles and their weights to a stream (requires T implementing CSerializable)...">writeParticlesToStream</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00107">107</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac5571368ccef88d4c205b43b9f6d630d"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::writeParticlesToStream" ref="ac5571368ccef88d4c205b43b9f6d630d" args="(utils::CStream &amp;out) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::bayes::CParticleFilterData::writeParticlesToStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmrpt_1_1utils_1_1_c_stream.html">utils::CStream</a> &amp;&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dumps the sequence of particles and their weights to a stream (requires T implementing CSerializable). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#ad32e2f80aeab31b21184d7e1bde687bc" title="Reads the sequence of particles and their weights from a stream (requires T implementing CSerializabl...">readParticlesFromStream</a> </dd></dl>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00093">93</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="af8bb2dfdacf54929213c8f905cdec000"></a><!-- doxytag: member="mrpt::bayes::CParticleFilterData::m_particles" ref="af8bb2dfdacf54929213c8f905cdec000" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#a455efc0962577f042b38590f36583537">CParticleList</a> <a class="el" href="classmrpt_1_1bayes_1_1_c_particle_filter_data.html#af8bb2dfdacf54929213c8f905cdec000">mrpt::bayes::CParticleFilterData::m_particles</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The array of particles. </p>

<p>Definition at line <a class="el" href="_c_particle_filter_data_8h_source.html#l00064">64</a> of file <a class="el" href="_c_particle_filter_data_8h_source.html">CParticleFilterData.h</a>.</p>

<p>Referenced by <a class="el" href="_c_particle_filter_data_8h_source.html#l00072">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::clearParticles()</a>, <a class="el" href="_c_particle_filter_data_8h_source.html#l00093">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::writeParticlesToStream()</a>, <a class="el" href="_c_particle_filter_data_8h_source.html#l00107">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::readParticlesFromStream()</a>, <a class="el" href="_c_particle_filter_data_8h_source.html#l00127">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::getWeights()</a>, and <a class="el" href="_c_particle_filter_data_8h_source.html#l00140">mrpt::bayes::CParticleFilterData&lt; CRBPFParticleData &gt;::getMostLikelyParticle()</a>.</p>

</div>
</div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>