git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
112 lines
7.3 KiB
HTML
112 lines
7.3 KiB
HTML
<!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>EO: eoSelectPerc< EOT > Class Template Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.3.9.1 -->
|
|
<div class="qindex"> <form class="search" action="search.php" method="get">
|
|
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
|
<h1>eoSelectPerc< EOT > Class Template Reference</h1>eoSelectPerc selects many individuals using <a class="el" href="classeo_select_one.html">eoSelectOne</a> as it's mechanism.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="eo_select_perc_8h-source.html">eoSelectPerc.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for eoSelectPerc< EOT >:
|
|
<p><center><img src="classeo_select_perc.png" usemap="#eoSelectPerc< EOT >_map" border="0" alt=""></center>
|
|
<map name="eoSelectPerc< EOT >_map">
|
|
<area href="classeo_select.html" alt="eoSelect< EOT >" shape="rect" coords="204,112,603,136">
|
|
<area href="classeo_b_f.html" alt="eoBF< const eoPop< EOT > &, eoPop< EOT > &, void >" shape="rect" coords="204,56,603,80">
|
|
<area href="classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="0,0,399,24">
|
|
</map>
|
|
<a href="classeo_select_perc-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="eoSelectPerc::eoSelectPerc"></a>
|
|
</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_select_perc.html#a0">eoSelectPerc</a> (<a class="el" href="classeo_select_one.html">eoSelectOne</a>< <a class="el" href="struct_dummy.html">EOT</a> > &_select, float _rate=1.0)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">init <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_select_perc.html#a1">operator()</a> (const <a class="el" href="classeo_pop.html">eoPop</a>< <a class="el" href="struct_dummy.html">EOT</a> > &_source, <a class="el" href="classeo_pop.html">eoPop</a>< <a class="el" href="struct_dummy.html">EOT</a> > &_dest)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The implementation selects a percentage. <a href="#a1"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r0" doxytag="eoSelectPerc::select"></a>
|
|
<a class="el" href="classeo_select_one.html">eoSelectOne</a>< <a class="el" href="struct_dummy.html">EOT</a> > & </td><td class="memItemRight" valign="bottom"><b>select</b></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r1" doxytag="eoSelectPerc::rate"></a>
|
|
float </td><td class="memItemRight" valign="bottom"><b>rate</b></td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class EOT><br>
|
|
class eoSelectPerc< EOT ></h3>
|
|
|
|
eoSelectPerc selects many individuals using <a class="el" href="classeo_select_one.html">eoSelectOne</a> as it's mechanism.
|
|
<p>
|
|
Therefore eoSelectPerc needs an <a class="el" href="classeo_select_one.html">eoSelectOne</a> in its ctor<p>
|
|
It will select floor(rate*pop.size()) individuals and pushes them to the back of the destination population.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="eo_select_perc_8h-source.html#l00042">42</a> of file <a class="el" href="eo_select_perc_8h-source.html">eoSelectPerc.h</a>.<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="a1" doxytag="eoSelectPerc::operator()"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" colspan="4">
|
|
template<class EOT> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void <a class="el" href="classeo_select_perc.html">eoSelectPerc</a>< <a class="el" href="struct_dummy.html">EOT</a> >::operator() </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const <a class="el" href="classeo_pop.html">eoPop</a>< <a class="el" href="struct_dummy.html">EOT</a> > & </td>
|
|
<td class="mdname" nowrap> <em>_source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap><a class="el" href="classeo_pop.html">eoPop</a>< <a class="el" href="struct_dummy.html">EOT</a> > & </td>
|
|
<td class="mdname" nowrap> <em>_dest</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The implementation selects a percentage.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>_source</em> </td><td>the source population </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_dest</em> </td><td>the resulting population (size of this population is the number of times <a class="el" href="classeo_select_one.html">eoSelectOne</a> is called. It empties the destination and adds the selection into it) </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Implements <a class="el" href="classeo_b_f.html#a1">eoBF< const eoPop< EOT > &, eoPop< EOT > &, void ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="eo_select_perc_8h-source.html#l00055">55</a> of file <a class="el" href="eo_select_perc_8h-source.html">eoSelectPerc.h</a>.
|
|
<p>
|
|
References <a class="el" href="eo_select_one_8h-source.html#l00049">eoSelectOne< EOT, WorthT >::setup()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="eo_select_perc_8h-source.html">eoSelectPerc.h</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:55 2006 for EO by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
|
</body>
|
|
</html>
|