Click here to Skip to main content
15,891,828 members
Articles / Desktop Programming / MFC

Genetic Algorithm Library

Rate me:
Please Sign up or sign in to vote.
4.93/5 (175 votes)
7 Apr 2012GPL358 min read 439.2K   34.7K   555  
A framework for genetic algorithms
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Genetic Algorithm Library: Common::GaUnsignedIntToFloat Union Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_common.html">Common</a>::<a class="el" href="union_common_1_1_ga_unsigned_int_to_float.html">GaUnsignedIntToFloat</a>
  </div>
</div>
<div class="contents">
<h1>Common::GaUnsignedIntToFloat Union Reference</h1><!-- doxytag: class="Common::GaUnsignedIntToFloat" -->This union is used for conversation from 32-bits long integer random number to single precision floating point number in interval (0, 1).  
<a href="#_details">More...</a>
<p>
<code>#include &lt;source/Random.h&gt;</code>
<p>

<p>
<a href="union_common_1_1_ga_unsigned_int_to_float-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 Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_common_1_1_ga_unsigned_int_to_float.html#e505cad3870397eadb92fd8140d683f3">bits</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This field is used to store 32-bit long integer number.  <a href="#e505cad3870397eadb92fd8140d683f3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="union_common_1_1_ga_unsigned_int_to_float.html#4acdb5bcff435088c8704cc2245d631c">number</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">field is used to read 32-bit long integer number as mantissa of single precision floating point number.  <a href="#4acdb5bcff435088c8704cc2245d631c"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This union is used for conversation from 32-bits long integer random number to single precision floating point number in interval (0, 1). 
<p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="e505cad3870397eadb92fd8140d683f3"></a><!-- doxytag: member="Common::GaUnsignedIntToFloat::bits" ref="e505cad3870397eadb92fd8140d683f3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="union_common_1_1_ga_unsigned_int_to_float.html#e505cad3870397eadb92fd8140d683f3">Common::GaUnsignedIntToFloat::bits</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This field is used to store 32-bit long integer number. 
<p>

</div>
</div><p>
<a class="anchor" name="4acdb5bcff435088c8704cc2245d631c"></a><!-- doxytag: member="Common::GaUnsignedIntToFloat::number" ref="4acdb5bcff435088c8704cc2245d631c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="union_common_1_1_ga_unsigned_int_to_float.html#4acdb5bcff435088c8704cc2245d631c">Common::GaUnsignedIntToFloat::number</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
field is used to read 32-bit long integer number as mantissa of single precision floating point number. 
<p>

</div>
</div><p>
<hr>The documentation for this union was generated from the following file:<ul>
<li>source/<a class="el" href="_random_8h.html">Random.h</a></ul>
</div>
<br/><a href="http://www.coolsoft-sd.com/ProductVersion.aspx?vid=9">Genetic Algorithm Library</a><br/><a href="http://www.coolsoft-sd.com/">Coolsoft Software Development</a>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer
Serbia Serbia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions