/usr/share/doc/libevocosm-dev/html/a00006.html is in libevocosm-dev 4.0.2-3ubuntu2.
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 | <!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.9.1 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="a00061.html">libevocosm</a></li><li class="navelem"><a class="el" href="a00006.html">exponential_scaler</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="a00068.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">libevocosm::exponential_scaler< OrganismType > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>An exponential fitness scaler.
<a href="a00006.html#details">More...</a></p>
<p><code>#include <<a class="el" href="a00055_source.html">scaler.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for libevocosm::exponential_scaler< OrganismType >:</div>
<div class="dyncontent">
<div class="center">
<img src="a00006.png" usemap="#libevocosm::exponential_scaler< OrganismType >_map" alt=""/>
<map id="libevocosm::exponential_scaler< OrganismType >_map" name="libevocosm::exponential_scaler< OrganismType >_map">
<area href="a00033.html" title="Fitness scaling for a population. " alt="libevocosm::scaler< OrganismType >" shape="rect" coords="0,56,293,80"/>
<area href="a00017.html" title="Elements shared by all classes in Evocosm. " alt="libevocosm::globals" shape="rect" coords="0,0,293,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a12424be7e39bb2192d4b7360992282d8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00006.html#a12424be7e39bb2192d4b7360992282d8">exponential_scaler</a> (double a_a=1.0, double a_b=1.0, double a_power=2.0)</td></tr>
<tr class="memdesc:a12424be7e39bb2192d4b7360992282d8"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a12424be7e39bb2192d4b7360992282d8">More...</a><br /></td></tr>
<tr class="separator:a12424be7e39bb2192d4b7360992282d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeb0aaffb53b9005d8631ea0c250f2e8d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00006.html#aeb0aaffb53b9005d8631ea0c250f2e8d">scale_fitness</a> (vector< OrganismType > &a_population)</td></tr>
<tr class="memdesc:aeb0aaffb53b9005d8631ea0c250f2e8d"><td class="mdescLeft"> </td><td class="mdescRight">Scaling function. <a href="#aeb0aaffb53b9005d8631ea0c250f2e8d">More...</a><br /></td></tr>
<tr class="separator:aeb0aaffb53b9005d8631ea0c250f2e8d"><td class="memSeparator" colspan="2"> </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::scaler< OrganismType ></a></td></tr>
<tr class="memitem:a502030510ce6edb408a0e80da18adf99 inherit pub_methods_a00033"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="a00033.html#a502030510ce6edb408a0e80da18adf99">~scaler</a> ()</td></tr>
<tr class="memdesc:a502030510ce6edb408a0e80da18adf99 inherit pub_methods_a00033"><td class="mdescLeft"> </td><td class="mdescRight">Virtual destructor. <a href="#a502030510ce6edb408a0e80da18adf99">More...</a><br /></td></tr>
<tr class="separator:a502030510ce6edb408a0e80da18adf99 inherit pub_methods_a00033"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_static_methods_a00017"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_a00017')"><img src="closed.png" alt="-"/> Static Protected Member Functions inherited from <a class="el" href="a00017.html">libevocosm::globals</a></td></tr>
<tr class="memitem:a5e8897de95e0cccd71f0493586b48424 inherit pro_static_methods_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e8897de95e0cccd71f0493586b48424"></a>
static size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#a5e8897de95e0cccd71f0493586b48424">rand_index</a> (size_t n)</td></tr>
<tr class="memdesc:a5e8897de95e0cccd71f0493586b48424 inherit pro_static_methods_a00017"><td class="mdescLeft"> </td><td class="mdescRight">Static function to allow use of g_random function pointer in random_shuffle. <br /></td></tr>
<tr class="separator:a5e8897de95e0cccd71f0493586b48424 inherit pro_static_methods_a00017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae0fb3d77391329662f21d0f84e222602 inherit pro_static_methods_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0fb3d77391329662f21d0f84e222602"></a>
static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#ae0fb3d77391329662f21d0f84e222602">set_seed</a> (uint32_t a_seed)</td></tr>
<tr class="memdesc:ae0fb3d77391329662f21d0f84e222602 inherit pro_static_methods_a00017"><td class="mdescLeft"> </td><td class="mdescRight">Set the seed for the random number generator. <br /></td></tr>
<tr class="separator:ae0fb3d77391329662f21d0f84e222602 inherit pro_static_methods_a00017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a76f6dc798b18bd272e1ff3c1f8d9c4fd inherit pro_static_methods_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76f6dc798b18bd272e1ff3c1f8d9c4fd"></a>
static uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#a76f6dc798b18bd272e1ff3c1f8d9c4fd">get_seed</a> ()</td></tr>
<tr class="memdesc:a76f6dc798b18bd272e1ff3c1f8d9c4fd inherit pro_static_methods_a00017"><td class="mdescLeft"> </td><td class="mdescRight">Set the seed for the random number generator. <br /></td></tr>
<tr class="separator:a76f6dc798b18bd272e1ff3c1f8d9c4fd inherit pro_static_methods_a00017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acb9a2cde1cdf3f6c0dde4c4e11b74533 inherit pro_static_methods_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb9a2cde1cdf3f6c0dde4c4e11b74533"></a>
static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#acb9a2cde1cdf3f6c0dde4c4e11b74533">version</a> ()</td></tr>
<tr class="memdesc:acb9a2cde1cdf3f6c0dde4c4e11b74533 inherit pro_static_methods_a00017"><td class="mdescLeft"> </td><td class="mdescRight">Get version number. <br /></td></tr>
<tr class="separator:acb9a2cde1cdf3f6c0dde4c4e11b74533 inherit pro_static_methods_a00017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_static_attribs_a00017"><td colspan="2" onclick="javascript:toggleInherit('pro_static_attribs_a00017')"><img src="closed.png" alt="-"/> Static Protected Attributes inherited from <a class="el" href="a00017.html">libevocosm::globals</a></td></tr>
<tr class="memitem:a2dd06cbfa61fdca09d03ec26837f7a7d inherit pro_static_attribs_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2dd06cbfa61fdca09d03ec26837f7a7d"></a>
static <a class="el" href="a00029.html">prng</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#a2dd06cbfa61fdca09d03ec26837f7a7d">g_random</a></td></tr>
<tr class="memdesc:a2dd06cbfa61fdca09d03ec26837f7a7d inherit pro_static_attribs_a00017"><td class="mdescLeft"> </td><td class="mdescRight">A shared random number generator. <br /></td></tr>
<tr class="separator:a2dd06cbfa61fdca09d03ec26837f7a7d inherit pro_static_attribs_a00017"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abeab049f579c3c70337bb4a3b67eecff inherit pro_static_attribs_a00017"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abeab049f579c3c70337bb4a3b67eecff"></a>
static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="a00017.html#abeab049f579c3c70337bb4a3b67eecff">g_version</a></td></tr>
<tr class="memdesc:abeab049f579c3c70337bb4a3b67eecff inherit pro_static_attribs_a00017"><td class="mdescLeft"> </td><td class="mdescRight">Version number. <br /></td></tr>
<tr class="separator:abeab049f579c3c70337bb4a3b67eecff inherit pro_static_attribs_a00017"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<class OrganismType><br />
class libevocosm::exponential_scaler< OrganismType ></h3>
<p>Implements an exponential fitness scaling, whereby all fitness values are modified such that new fitness = (a * fitness + b) ^ n. </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><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a12424be7e39bb2192d4b7360992282d8"></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="a00006.html">libevocosm::exponential_scaler</a>< OrganismType >::<a class="el" href="a00006.html">exponential_scaler</a> </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>a_a</em> = <code>1.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>a_b</em> = <code>1.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>a_power</em> = <code>2.0</code> </td>
</tr>
<tr>
<td></td>
<td>)</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 exponential scaler with a given set of parameters. The formula used is new_fitness = (a * fitness + b) ^ power. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a_a</td><td>- A multplier against the fitness </td></tr>
<tr><td class="paramname">a_b</td><td>- Added to fitness before exponentiation </td></tr>
<tr><td class="paramname">a_power</td><td>- Power applied to the value </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aeb0aaffb53b9005d8631ea0c250f2e8d"></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">virtual void <a class="el" href="a00006.html">libevocosm::exponential_scaler</a>< OrganismType >::scale_fitness </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">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Performs exponential scaling on the fitness of the target population. </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>
<p>Implements <a class="el" href="a00033.html#a3aa9fd13eeaa35d7e23d7540df01e682">libevocosm::scaler< OrganismType ></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">scaler.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>
|