Paradiseo-eo sources added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2006-12-12 14:49:08 +00:00
commit c3aec878e5
3609 changed files with 342772 additions and 0 deletions

View file

@ -0,0 +1,360 @@
<!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: eoEsChromInit&lt; EOT &gt; 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&nbsp;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&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>eoEsChromInit&lt; EOT &gt; Class Template Reference<br>
<small>
[<a class="el" href="group___evolution_strategies.html">EvolutionStrategies</a>]</small>
</h1>Random Es-chromosome initializer (therefore derived from <a class="el" href="classeo_init.html">eoInit</a>).
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>&gt;</code>
<p>
<p>Inheritance diagram for eoEsChromInit&lt; EOT &gt;:
<p><center><img src="classeo_es_chrom_init.png" usemap="#eoEsChromInit< EOT >_map" border="0" alt=""></center>
<map name="eoEsChromInit< EOT >_map">
<area href="classeo_real_init_bounded.html" alt="eoRealInitBounded< EOT >" shape="rect" coords="101,168,294,192">
<area href="classeo_init.html" alt="eoInit< EOT >" shape="rect" coords="101,112,294,136">
<area href="classeo_u_f.html" alt="eoUF< EOT &, void >" shape="rect" coords="101,56,294,80">
<area href="classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="0,0,193,24">
</map>
<a href="classeo_es_chrom_init-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w0" doxytag="eoEsChromInit::FitT"></a>
typedef EOT::Fitness&nbsp;</td><td class="memItemRight" valign="bottom"><b>FitT</b></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#a0">eoEsChromInit</a> (<a class="el" href="classeo_real_vector_bounds.html">eoRealVectorBounds</a> &amp;_bounds, double _sigma=0.3, bool _to_scale=false)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#a1">eoEsChromInit</a> (<a class="el" href="classeo_real_vector_bounds.html">eoRealVectorBounds</a> &amp;_bounds, std::vector&lt; double &gt; _vecSigma)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="eoEsChromInit::operator()"></a>
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#a2">operator()</a> (<a class="el" href="struct_dummy.html">EOT</a> &amp;_eo)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">simply passes the argument to the uniform method of the bounds <br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#d0">create_self_adapt</a> (<a class="el" href="classeo_real.html">eoReal</a>&lt; FitT &gt; &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create intializer. <a href="#d0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#d1">create_self_adapt</a> (<a class="el" href="classeo_es_simple.html">eoEsSimple</a>&lt; FitT &gt; &amp;result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create intializer. <a href="#d1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#d2">create_self_adapt</a> (<a class="el" href="classeo_es_stdev.html">eoEsStdev</a>&lt; FitT &gt; &amp;result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create intializer. <a href="#d2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#d3">create_self_adapt</a> (<a class="el" href="classeo_es_full.html">eoEsFull</a>&lt; FitT &gt; &amp;result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create intializer. <a href="#d3"></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="eoEsChromInit::uniqueSigma"></a>
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#r0">uniqueSigma</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initial value in case of a unique sigma. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="r1" doxytag="eoEsChromInit::vecSigma"></a>
std::vector&lt; double &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_es_chrom_init.html#r1">vecSigma</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initial values in case of a vector of sigmas. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class EOT&gt;<br>
class eoEsChromInit&lt; EOT &gt;</h3>
Random Es-chromosome initializer (therefore derived from <a class="el" href="classeo_init.html">eoInit</a>).
<p>
This class can initialize four types of real-valued genotypes thanks to tempate specialization of private method create:<p>
<ul>
<li><a class="el" href="classeo_real.html">eoReal</a> just an eoVector&lt;double&gt;</li><li><a class="el" href="classeo_es_simple.html">eoEsSimple</a> + one self-adapting single sigma for all variables</li><li><a class="el" href="classeo_es_stdev.html">eoEsStdev</a> a whole std::vector of self-adapting sigmas</li><li><a class="el" href="classeo_es_full.html">eoEsFull</a> a full self-adapting correlation matrix</li></ul>
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classeo_real.html">eoReal</a> <a class="el" href="classeo_es_simple.html">eoEsSimple</a> <a class="el" href="classeo_es_stdev.html">eoEsStdev</a> <a class="el" href="classeo_es_full.html">eoEsFull</a> <a class="el" href="classeo_init.html">eoInit</a> </dd></dl>
<p>
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00055">55</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="eoEsChromInit::eoEsChromInit"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::<a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a> </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_real_vector_bounds.html">eoRealVectorBounds</a> &amp;&nbsp;</td>
<td class="mdname" nowrap> <em>_bounds</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>double&nbsp;</td>
<td class="mdname" nowrap> <em>_sigma</em> = <code>0.3</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>bool&nbsp;</td>
<td class="mdname" nowrap> <em>_to_scale</em> = <code>false</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor.
<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>_bounds</em>&nbsp;</td><td>bounds for uniform initialization </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_sigma</em>&nbsp;</td><td>initial value for the stddev </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_to_scale</em>&nbsp;</td><td>wether sigma should be multiplied by the range of each variable added December 2004 - MS (together with the whole comment :-) </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00071">71</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
References <a class="el" href="eo_real_vector_bounds_8h-source.html#l00176">eoRealBaseVectorBounds::range()</a>, <a class="el" href="eo_real_init_bounded_8h-source.html#l00058">eoRealInitBounded&lt; EOT &gt;::theBounds()</a>, <a class="el" href="eo_es_chrom_init_8h-source.html#l00186">eoEsChromInit&lt; EOT &gt;::uniqueSigma</a>, and <a class="el" href="eo_es_chrom_init_8h-source.html#l00189">eoEsChromInit&lt; EOT &gt;::vecSigma</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="eoEsChromInit::eoEsChromInit"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::<a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a> </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_real_vector_bounds.html">eoRealVectorBounds</a> &amp;&nbsp;</td>
<td class="mdname" nowrap> <em>_bounds</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>std::vector&lt; double &gt;&nbsp;</td>
<td class="mdname" nowrap> <em>_vecSigma</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor.
<p>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.<p>
Specify individual initial sigmas for each variable.<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>_bounds</em>&nbsp;</td><td>bounds for uniform initialization </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_sigma</em>&nbsp;</td><td>initial value for the stddev </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00109">109</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
References <a class="el" href="eo_es_chrom_init_8h-source.html#l00186">eoEsChromInit&lt; EOT &gt;::uniqueSigma</a>, and <a class="el" href="eo_es_chrom_init_8h-source.html#l00189">eoEsChromInit&lt; EOT &gt;::vecSigma</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d0" doxytag="eoEsChromInit::create_self_adapt"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::create_self_adapt </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_real.html">eoReal</a>&lt; FitT &gt; &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Create intializer.
<p>
No adaptive mutation at all
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00128">128</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
Referenced by <a class="el" href="eo_es_chrom_init_8h-source.html#l00114">eoEsChromInit&lt; EOT &gt;::operator()()</a>. </td>
</tr>
</table>
<a class="anchor" name="d1" doxytag="eoEsChromInit::create_self_adapt"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::create_self_adapt </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_es_simple.html">eoEsSimple</a>&lt; FitT &gt; &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>result</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Create intializer.
<p>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.<p>
Adaptive mutation through a unique sigma
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00139">139</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
References <a class="el" href="eo_es_simple_8h-source.html#l00064">eoEsSimple&lt; Fit &gt;::stdev</a>. </td>
</tr>
</table>
<a class="anchor" name="d2" doxytag="eoEsChromInit::create_self_adapt"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::create_self_adapt </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_es_stdev.html">eoEsStdev</a>&lt; FitT &gt; &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>result</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Create intializer.
<p>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.<p>
Adaptive mutation through a std::vector of sigmas<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>Should we scale sigmas to the corresponding object variable range? </dd></dl>
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00155">155</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
References <a class="el" href="eo_es_stdev_8h-source.html#l00067">eoEsStdev&lt; Fit &gt;::stdevs</a>. </td>
</tr>
</table>
<a class="anchor" name="d3" doxytag="eoEsChromInit::create_self_adapt"></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&lt;class EOT&gt; </td>
</tr>
<tr>
<td class="md" nowrap valign="top">void <a class="el" href="classeo_es_chrom_init.html">eoEsChromInit</a>&lt; <a class="el" href="struct_dummy.html">EOT</a> &gt;::create_self_adapt </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classeo_es_full.html">eoEsFull</a>&lt; FitT &gt; &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>result</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, private]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Create intializer.
<p>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.<p>
Adaptive mutation through a whole correlation matrix
<p>
Definition at line <a class="el" href="eo_es_chrom_init_8h-source.html#l00169">169</a> of file <a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a>.
<p>
References <a class="el" href="eo_es_full_8h-source.html#l00080">eoEsFull&lt; Fit &gt;::correlations</a>, <a class="el" href="eo_es_full_8h-source.html#l00079">eoEsFull&lt; Fit &gt;::stdevs</a>, and <a class="el" href="eo_r_n_g_8h-source.html#l00158">eoRng::uniform()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="eo_es_chrom_init_8h-source.html">eoEsChromInit.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:47 2006 for EO by&nbsp;
<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>