Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c74ab286c3d46f9b82671d206e43a74b > files > 1738

libstdc++-docs-4.6.3-2.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libstdc++: Uniform Distributions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libstdc++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a01208.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Uniform Distributions</div>  </div>
<div class="ingroups"><a class="el" href="a01207.html">Random Number Distributions</a></div></div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for Uniform Distributions:</div>
<div class="dyncontent">
<center><table><tr><td><img src="a01208.png" border="0" alt="" usemap="#a01208"/>
<map name="a01208" id="a01208">
<area shape="rect" id="node2" href="a01207.html" title="Random Number Distributions" alt="" coords="5,5,192,35"/></map>
</td></tr></table></center>
</div>
<h2><a name="nested-classes"></a>
Classes</h2>
<ul>
<li>class <a class="el" href="a00726.html">std::uniform_int_distribution&lt; _IntType &gt;</a>
<dl class="el"><dd class="mdescRight">Uniform discrete distribution for random numbers. A discrete random distribution on the range <img class="formulaInl" alt="$[min, max]$" src="form_5.png"/> with equal probability throughout the range.  <a href="a00726.html#details">More...</a><br/></dl><li>class <a class="el" href="a00728.html">std::uniform_real_distribution&lt; _RealType &gt;</a>
<dl class="el"><dd class="mdescRight">Uniform continuous distribution for random numbers.  <a href="a00728.html#details">More...</a><br/></dl></ul>
<h2><a name="func-members"></a>
Functions</h2>
<ul>
<li>template&lt;typename _IntType &gt; bool <a class="el" href="a01208.html#gab3b790423039d36e6cfc17136fe5cd29">std::operator!=</a> (const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;__d1, const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;__d2)
<li>template&lt;typename _IntType &gt; bool <a class="el" href="a01208.html#gaff3594927bd8adbd661962fbdafbf931">std::operator!=</a> (const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;__d1, const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;__d2)
<li>template&lt;typename _RealType , typename _CharT , typename _Traits &gt; <a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a01208.html#gab425822c63937d8e9878fdd3f212a1ac">std::operator&lt;&lt;</a> (<a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;, const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt; &amp;)
<li>template&lt;typename _IntType , typename _CharT , typename _Traits &gt; <a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a01208.html#gadd8f9283f80a5d576d3ee88b98369011">std::operator&lt;&lt;</a> (<a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;, const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;)
<li>template&lt;typename _IntType &gt; bool <a class="el" href="a01208.html#gaf8d084e7418df9d52af098df43c5effd">std::operator==</a> (const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;__d1, const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;__d2)
<li>template&lt;typename _IntType &gt; bool <a class="el" href="a01208.html#gabc1f5ed5e3291766d4c737af60f5d5cc">std::operator==</a> (const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;__d1, const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;__d2)
<li>template&lt;typename _RealType , typename _CharT , typename _Traits &gt; <a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a01208.html#ga5633dac1b16515dde08b6fbaea90ce5c">std::operator&gt;&gt;</a> (<a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;, <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt; &amp;)
<li>template&lt;typename _IntType , typename _CharT , typename _Traits &gt; <a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a01208.html#ga36a563dc8414a1489dc72593bf7b7a4e">std::operator&gt;&gt;</a> (<a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;, <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;)
</ul>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gab3b790423039d36e6cfc17136fe5cd29"></a><!-- doxytag: member="std::operator!=" ref="gab3b790423039d36e6cfc17136fe5cd29" args="(const std::uniform_int_distribution&lt; _IntType &gt; &amp;__d1, const std::uniform_int_distribution&lt; _IntType &gt; &amp;__d2)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool std::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if two uniform integer distributions have different parameters. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l01740">1740</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="gaff3594927bd8adbd661962fbdafbf931"></a><!-- doxytag: member="std::operator!=" ref="gaff3594927bd8adbd661962fbdafbf931" args="(const std::uniform_real_distribution&lt; _IntType &gt; &amp;__d1, const std::uniform_real_distribution&lt; _IntType &gt; &amp;__d2)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool std::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if two uniform real distributions have different parameters. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l01921">1921</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="gab425822c63937d8e9878fdd3f212a1ac"></a><!-- doxytag: member="std::operator&lt;&lt;" ref="gab425822c63937d8e9878fdd3f212a1ac" args="(std::basic_ostream&lt; _CharT, _Traits &gt; &amp;, const std::uniform_real_distribution&lt; _RealType &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType , typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp; std::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname"><em>__os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts a uniform_real_distribution random number distribution <code>__x</code> into the output stream <code>__os</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__os</td><td>An output stream. </td></tr>
    <tr><td class="paramname">__x</td><td>A uniform_real_distribution random number distribution.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The output stream with the state of <code>__x</code> inserted or in an error state. </dd></dl>

<p>Definition at line <a class="el" href="a00998_source.html#l00944">944</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>References <a class="el" href="a00909_source.html#l00553">std::ios_base::flags()</a>, <a class="el" href="a00909_source.html#l00918">std::left()</a>, and <a class="el" href="a00909_source.html#l00968">std::scientific()</a>.</p>

</div>
</div>
<a class="anchor" id="gadd8f9283f80a5d576d3ee88b98369011"></a><!-- doxytag: member="std::operator&lt;&lt;" ref="gadd8f9283f80a5d576d3ee88b98369011" args="(std::basic_ostream&lt; _CharT, _Traits &gt; &amp;, const std::uniform_int_distribution&lt; _IntType &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType , typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp; std::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname"><em>__os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts a uniform_int_distribution random number distribution <code>__x</code> into the output stream <code>os</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__os</td><td>An output stream. </td></tr>
    <tr><td class="paramname">__x</td><td>A uniform_int_distribution random number distribution.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The output stream with the state of <code>__x</code> inserted or in an error state. </dd></dl>

<p>Definition at line <a class="el" href="a00998_source.html#l00902">902</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>References <a class="el" href="a00909_source.html#l00553">std::ios_base::flags()</a>, <a class="el" href="a00909_source.html#l00918">std::left()</a>, and <a class="el" href="a00909_source.html#l00968">std::scientific()</a>.</p>

</div>
</div>
<a class="anchor" id="gaf8d084e7418df9d52af098df43c5effd"></a><!-- doxytag: member="std::operator==" ref="gaf8d084e7418df9d52af098df43c5effd" args="(const std::uniform_real_distribution&lt; _IntType &gt; &amp;__d1, const std::uniform_real_distribution&lt; _IntType &gt; &amp;__d2)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool std::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if two uniform real distributions have the same parameters. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l01911">1911</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

<p>References <a class="el" href="a00997_source.html#l01858">std::uniform_real_distribution&lt; _RealType &gt;::param()</a>.</p>

</div>
</div>
<a class="anchor" id="gabc1f5ed5e3291766d4c737af60f5d5cc"></a><!-- doxytag: member="std::operator==" ref="gabc1f5ed5e3291766d4c737af60f5d5cc" args="(const std::uniform_int_distribution&lt; _IntType &gt; &amp;__d1, const std::uniform_int_distribution&lt; _IntType &gt; &amp;__d2)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool std::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__d2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if two uniform integer distributions have the same parameters. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l01730">1730</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

<p>References <a class="el" href="a00997_source.html#l01683">std::uniform_int_distribution&lt; _IntType &gt;::param()</a>.</p>

</div>
</div>
<a class="anchor" id="ga5633dac1b16515dde08b6fbaea90ce5c"></a><!-- doxytag: member="std::operator&gt;&gt;" ref="ga5633dac1b16515dde08b6fbaea90ce5c" args="(std::basic_istream&lt; _CharT, _Traits &gt; &amp;, std::uniform_real_distribution&lt; _RealType &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType , typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp; std::operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname"><em>__is</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts a uniform_real_distribution random number distribution <code>__x</code> from the input stream <code>__is</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__is</td><td>An input stream. </td></tr>
    <tr><td class="paramname">__x</td><td>A uniform_real_distribution random number generator engine.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The input stream with <code>__x</code> extracted or in an error state. </dd></dl>

<p>Definition at line <a class="el" href="a00998_source.html#l00968">968</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>References <a class="el" href="a00909_source.html#l00553">std::ios_base::flags()</a>, <a class="el" href="a00997_source.html#l01858">std::uniform_real_distribution&lt; _RealType &gt;::param()</a>, and <a class="el" href="a00909_source.html#l00861">std::skipws()</a>.</p>

</div>
</div>
<a class="anchor" id="ga36a563dc8414a1489dc72593bf7b7a4e"></a><!-- doxytag: member="std::operator&gt;&gt;" ref="ga36a563dc8414a1489dc72593bf7b7a4e" args="(std::basic_istream&lt; _CharT, _Traits &gt; &amp;, std::uniform_int_distribution&lt; _IntType &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _IntType , typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp; std::operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname"><em>__is</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00726.html">std::uniform_int_distribution</a>&lt; _IntType &gt; &amp;&#160;</td>
          <td class="paramname"><em>__x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extracts a uniform_int_distribution random number distribution <code>__x</code> from the input stream <code>__is</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__is</td><td>An input stream. </td></tr>
    <tr><td class="paramname">__x</td><td>A uniform_int_distribution random number generator engine.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The input stream with <code>__x</code> extracted or in an error state. </dd></dl>

<p>Definition at line <a class="el" href="a00998_source.html#l00923">923</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>References <a class="el" href="a00909_source.html#l00935">std::dec()</a>, <a class="el" href="a00909_source.html#l00553">std::ios_base::flags()</a>, <a class="el" href="a00997_source.html#l01683">std::uniform_int_distribution&lt; _IntType &gt;::param()</a>, and <a class="el" href="a00909_source.html#l00861">std::skipws()</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>