Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 1099e73f16f15ba3cf656e619f52a447 > files > 512

ompl-devel-0.9.5-1.fc14.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>OMPL: ompl::base::ProjectionMatrix Class Reference</title>
<meta name="author" content="Ioan A. Șucan, Mark Moll, Lydia E. Kavraki">
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
<!--[if lt IE 7]>
<script type="text/javascript" src="../js/jquery/jquery.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.dropdown.js"></script>
<![endif]-->
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-9156598-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search API');
--></script>
<div class="navigation" id="top">
  <div class="tabs" id="ompltitle">
    <ul class="tablist">
      <li>The Open Motion Planning Library</li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search API" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>

  <ul id="nav" class="dropdown">
    <li class="first"><a href="index.html">Home</a></li>
    <li><a href="download.html">Download</a></li>
    <li><a href="documentation.html">Documentation</a></li>
    <li><span class="dir">Code API</span>
      <ul>
        <li><a href="api_overview.html">API Overview</a></li>
        <li><a href="namespaces.html">Namespaces</a></li>
        <li><a href="annotated.html">Classes</a></li>
        <li><a href="files.html">Files</a></li>
        <li><a href="dirs.html">Directories</a></li>
      </ul>
    </li>
    <li><span class="dir">Community</span>
      <ul>
        <li><a href="developers.html">Developers</a></li>
        <li><a href="thirdparty.html">Contributions</a></li>
        <li><a href="education.html">Education</a></li>
        <li><a href="gallery.html">Gallery</a></li>
      </ul>
    </li>
    <li><span class="dir">About</span>
      <ul>
        <li><a href="license.html">License</a></li>
        <li><a href="citations.html">Citations</a></li>
        <li><a href="acknowledgements.html">Acknowledgments</a></li>
        <li><a href="contact.html">Contact Us</a></li>
      </ul>
    </li>
  </ul>
</div>

<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
  onmouseover="return searchBox.OnSearchSelectShow()"
  onmouseout="return searchBox.OnSearchSelectHide()"
  onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
  <iframe src="" frameborder="0"name="MSearchResults" id="MSearchResults"></iframe>
</div>

<div class="container">
  <div class="span-22 push-2 first last">
  <div>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceompl.html">ompl</a>      </li>
      <li class="navelem"><a class="el" href="namespaceompl_1_1base.html">base</a>      </li>
      <li class="navelem"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html">ProjectionMatrix</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-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ompl::base::ProjectionMatrix Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ompl::base::ProjectionMatrix" -->
<p>A projection matrix -- it allows multiplication of real vectors by a specified matrix. The matrix can also be randomly generated.  
 <a href="classompl_1_1base_1_1ProjectionMatrix.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ProjectionEvaluator_8h_source.html">ProjectionEvaluator.h</a>&gt;</code></p>

<p><a href="classompl_1_1base_1_1ProjectionMatrix-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"><a class="anchor" id="ae68f9cc67896cca8050460d3fad9c803"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::Matrix" ref="ae68f9cc67896cca8050460d3fad9c803" args="" -->
typedef <br class="typebreak"/>
boost::numeric::ublas::matrix<br class="typebreak"/>
&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">Matrix</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Datatype for projection matrices. <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"><a class="anchor" id="a5d6ba2d6abcc7ee055adaacf3699adf3"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::computeRandom" ref="a5d6ba2d6abcc7ee055adaacf3699adf3" args="(const unsigned int from, const unsigned int to, const std::vector&lt; double &gt; &amp;scale)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#a5d6ba2d6abcc7ee055adaacf3699adf3">computeRandom</a> (const unsigned int from, const unsigned int to, const std::vector&lt; double &gt; &amp;scale)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for ComputeRandom(from, to, scale) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac6a06b411074970846c0d6aff9028022"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::computeRandom" ref="ac6a06b411074970846c0d6aff9028022" args="(const unsigned int from, const unsigned int to)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ac6a06b411074970846c0d6aff9028022">computeRandom</a> (const unsigned int from, const unsigned int to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for ComputeRandom(from, to) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae8c7810595867e22da08f567581721d"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::project" ref="aae8c7810595867e22da08f567581721d" args="(const double *from, EuclideanProjection &amp;to) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#aae8c7810595867e22da08f567581721d">project</a> (const double *from, <a class="el" href="namespaceompl_1_1base.html#aa83f2e90d56884b236b1e400d116b10b">EuclideanProjection</a> &amp;to) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply the vector <em>from</em> by the contained projection matrix to obtain the vector <em>to</em>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af85b426d3148933a7b54e65517ba9faa"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::print" ref="af85b426d3148933a7b54e65517ba9faa" args="(std::ostream &amp;out=std::cout) const " -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#af85b426d3148933a7b54e65517ba9faa">print</a> (std::ostream &amp;out=std::cout) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the contained projection matrix to a stram. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">Matrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#a306ddad92cbc26a8fa479f1ce4ab238a">ComputeRandom</a> (const unsigned int from, const unsigned int to, const std::vector&lt; double &gt; &amp;scale)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a random projection matrix with <em>from</em> columns and <em>to</em> rows. A vector with <em>from</em> elements can be multiplied by this matrix in order to produce a vector with <em>to</em> elements.  <a href="#a306ddad92cbc26a8fa479f1ce4ab238a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">Matrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#adad1010b61fe753350445de650ada766">ComputeRandom</a> (const unsigned int from, const unsigned int to)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a random projection matrix with <em>from</em> columns and <em>to</em> rows. A vector with <em>from</em> elements can be multiplied by this matrix in order to produce a vector with <em>to</em> elements.  <a href="#adad1010b61fe753350445de650ada766"></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="anchor" id="a0852751bba6e533c0e08792be5c55444"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::mat" ref="a0852751bba6e533c0e08792be5c55444" args="" -->
<a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">Matrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#a0852751bba6e533c0e08792be5c55444">mat</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Projection matrix. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A projection matrix -- it allows multiplication of real vectors by a specified matrix. The matrix can also be randomly generated. </p>

<p>Definition at line <a class="el" href="ProjectionEvaluator_8h_source.html#l00065">65</a> of file <a class="el" href="ProjectionEvaluator_8h_source.html">ProjectionEvaluator.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a306ddad92cbc26a8fa479f1ce4ab238a"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::ComputeRandom" ref="a306ddad92cbc26a8fa479f1ce4ab238a" args="(const unsigned int from, const unsigned int to, const std::vector&lt; double &gt; &amp;scale)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">ompl::base::ProjectionMatrix::Matrix</a> ompl::base::ProjectionMatrix::ComputeRandom </td>
          <td>(</td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute a random projection matrix with <em>from</em> columns and <em>to</em> rows. A vector with <em>from</em> elements can be multiplied by this matrix in order to produce a vector with <em>to</em> elements. </p>
<p>If the <em>scale</em> argument is specified, the columns of the matrix are divided by the corresponding scaling argument: all elements (rows) in column[i] are divided by scale[i]. This is useful to specify if scaling of the elements of the state is to be applied before projection.</p>
<p>Each element is sampled with a Gaussian distribution with mean 0 and variance 1 and the matrix columns are made orthonormal. </p>

<p>Definition at line <a class="el" href="ProjectionEvaluator_8cpp_source.html#l00053">53</a> of file <a class="el" href="ProjectionEvaluator_8cpp_source.html">ProjectionEvaluator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adad1010b61fe753350445de650ada766"></a><!-- doxytag: member="ompl::base::ProjectionMatrix::ComputeRandom" ref="adad1010b61fe753350445de650ada766" args="(const unsigned int from, const unsigned int to)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classompl_1_1base_1_1ProjectionMatrix.html#ae68f9cc67896cca8050460d3fad9c803">ompl::base::ProjectionMatrix::Matrix</a> ompl::base::ProjectionMatrix::ComputeRandom </td>
          <td>(</td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute a random projection matrix with <em>from</em> columns and <em>to</em> rows. A vector with <em>from</em> elements can be multiplied by this matrix in order to produce a vector with <em>to</em> elements. </p>
<p>Each element is sampled with a Gaussian distribution with mean 0 and variance 1 and the matrix columns are made orthonormal. </p>

<p>Definition at line <a class="el" href="ProjectionEvaluator_8cpp_source.html#l00082">82</a> of file <a class="el" href="ProjectionEvaluator_8cpp_source.html">ProjectionEvaluator.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/ompl/base/<a class="el" href="ProjectionEvaluator_8h_source.html">ProjectionEvaluator.h</a></li>
<li>src/ompl/base/src/<a class="el" href="ProjectionEvaluator_8cpp_source.html">ProjectionEvaluator.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>

<div class="footer span-22 push-2 last">
  <a href="http://www.kavrakilab.org">Physical and Biological Computing Group</a> &bull;
  <a href="http://www.cs.rice.edu">Department of Computer Science</a> &bull;
  <a href="http://www.rice.edu">Rice University</a><br>
  <div class="gray">Generated on Sun Oct 9 2011 23:04:31 by&#160;<a href="http://www.doxygen.org/index.html">doxygen</a> 1.7.4</div>
</div>
</div>
</body>
</html>