/usr/share/doc/libevocosm-dev/html/a00003.html is in libevocosm-dev 4.0.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Evocosm</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<h1 align="center" color="#606080">
Evocosm - A C++ Framework for Evolutionary Computing
</h1>
<h2 align="center"><a href="index.html">Main Index</a></h2>
<p align="center">
Created by <a href="mailto:scott.ladd@@coyotegulch.com?subject=libevocosm">Scott Robert Ladd</a> at
<a href="http://www.coyotegulch.com">Coyote Gulch Productions</a>.
</p>
<hr>
<!-- Generated by Doxygen 1.8.1.1 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="a00060.html">libevocosm</a></li><li class="navelem"><a class="el" href="a00003.html">elitism_selector</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">libevocosm::elitism_selector< OrganismType > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Implements a elitism selector.
<a href="a00003.html#details">More...</a></p>
<p><code>#include <<a class="el" href="a00055_source.html">selector.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for libevocosm::elitism_selector< OrganismType >:</div>
<div class="dyncontent">
<div class="center">
<img src="a00003.png" usemap="#libevocosm::elitism_selector< OrganismType >_map" alt=""/>
<map id="libevocosm::elitism_selector< OrganismType >_map" name="libevocosm::elitism_selector< OrganismType >_map">
<area href="a00033.html" title="Selects organisms that survive." alt="libevocosm::selector< OrganismType >" shape="rect" coords="0,56,273,80"/>
<area href="a00017.html" title="Elements shared by all classes in Evocosm." alt="libevocosm::globals" shape="rect" coords="0,0,273,24"/>
</map>
</div></div>
<p><a href="a00096.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4dab8238e6917581b01c7b095713ab07"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#a4dab8238e6917581b01c7b095713ab07">elitism_selector</a> (double a_factor=0.9)</td></tr>
<tr class="memdesc:a4dab8238e6917581b01c7b095713ab07"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a4dab8238e6917581b01c7b095713ab07"></a><br/></td></tr>
<tr class="memitem:ad757040af83cbdb76124901a2eeaffb5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#ad757040af83cbdb76124901a2eeaffb5">elitism_selector</a> (const <a class="el" href="a00003.html">elitism_selector</a>< OrganismType > &a_source)</td></tr>
<tr class="memdesc:ad757040af83cbdb76124901a2eeaffb5"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#ad757040af83cbdb76124901a2eeaffb5"></a><br/></td></tr>
<tr class="memitem:a903fcf3dad531a30bc65e4a3c2b0fb02"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00003.html">elitism_selector</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#a903fcf3dad531a30bc65e4a3c2b0fb02">operator=</a> (const <a class="el" href="a00003.html">elitism_selector</a>< OrganismType > &a_source)</td></tr>
<tr class="memdesc:a903fcf3dad531a30bc65e4a3c2b0fb02"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a903fcf3dad531a30bc65e4a3c2b0fb02"></a><br/></td></tr>
<tr class="memitem:aa3836516947341e60bea8bd0a1e1f0a0"><td class="memItemLeft" align="right" valign="top">virtual vector< OrganismType > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html#aa3836516947341e60bea8bd0a1e1f0a0">select_survivors</a> (vector< OrganismType > &a_population)</td></tr>
<tr class="memdesc:aa3836516947341e60bea8bd0a1e1f0a0"><td class="mdescLeft"> </td><td class="mdescRight">Select individuals that survive. <a href="#aa3836516947341e60bea8bd0a1e1f0a0"></a><br/></td></tr>
<tr class="inherit_header pub_methods_a00033"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_a00033')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="a00033.html">libevocosm::selector< OrganismType ></a></td></tr>
<tr class="memitem:a44b030d108842b5d81aaa6d35ee944e8 inherit pub_methods_a00033"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00033.html#a44b030d108842b5d81aaa6d35ee944e8">~selector</a> ()</td></tr>
<tr class="memdesc:a44b030d108842b5d81aaa6d35ee944e8 inherit pub_methods_a00033"><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <a href="#a44b030d108842b5d81aaa6d35ee944e8"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template<class OrganismType><br/>
class libevocosm::elitism_selector< OrganismType ></h3>
<p>Elitism is one of the simplest type of selection – it simply says that the <em>n</em> best organisms will survive into the next generation. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">OrganismType</td><td>- The type of organism </td></tr>
</table>
</dd>
</dl>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a4dab8238e6917581b01c7b095713ab07"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class OrganismType> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00003.html">libevocosm::elitism_selector</a>< OrganismType >::<a class="el" href="a00003.html">elitism_selector</a> </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>a_factor</em> = <code>0.9</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a new elistism_selector with a value that defines the number of organisms that should survive into the next generation. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">a_factor</td><td>- Percentage of bets fitness required to surivive </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad757040af83cbdb76124901a2eeaffb5"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class OrganismType> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00003.html">libevocosm::elitism_selector</a>< OrganismType >::<a class="el" href="a00003.html">elitism_selector</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00003.html">elitism_selector</a>< OrganismType > & </td>
<td class="paramname"><em>a_source</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new object identical to an existing one. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">a_source</td><td>- The source object </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a903fcf3dad531a30bc65e4a3c2b0fb02"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class OrganismType> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00003.html">elitism_selector</a>& <a class="el" href="a00003.html">libevocosm::elitism_selector</a>< OrganismType >::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00003.html">elitism_selector</a>< OrganismType > & </td>
<td class="paramname"><em>a_source</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Assigns an existing object the state of another. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">a_source</td><td>- The source object </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa3836516947341e60bea8bd0a1e1f0a0"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class OrganismType> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">vector< OrganismType > <a class="el" href="a00003.html">libevocosm::elitism_selector</a>< OrganismType >::select_survivors </td>
<td>(</td>
<td class="paramtype">vector< OrganismType > & </td>
<td class="paramname"><em>a_population</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Produces a vector containing copies of the organisms selected for survival. </p>
<dl class="params"><dt>Parameters:</dt><dd>
<table class="params">
<tr><td class="paramname">a_population</td><td>- A population of organisms </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>A population of copied survivors </dd></dl>
<p>Implements <a class="el" href="a00033.html#a629e0a7425694ece1e452797c4a2cc79">libevocosm::selector< OrganismType ></a>.</p>
<p>References <a class="el" href="a00007.html#ae1720e4f01356702fc1949900684a0ab">libevocosm::fitness_stats< OrganismType >::getBest()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00055_source.html">selector.h</a></li>
</ul>
</div><!-- contents -->
<hr>
<p align="center"><small>
© 1996-2005 Scott Robert Ladd. All rights reserved.<br>
HTML documentation generated by Dimitri van Heesch's excellent <a href="http://www.doxygen.org">Doxygen</a> tool.
</small>
</p>
</body>
</html>
|