Sophie

Sophie

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

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++: std::uniform_real_distribution&lt; _RealType &gt; Class Template Reference</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('a00728.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">std::uniform_real_distribution&lt; _RealType &gt; Class Template Reference<div class="ingroups"><a class="el" href="a01208.html">Uniform Distributions</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="std::uniform_real_distribution" -->
<p>Uniform continuous distribution for random numbers.  
 <a href="a00728.html#details">More...</a></p>

<p><a href="a02417.html">List of all members.</a></p>
<h2><a name="nested-classes"></a>
Classes</h2>
<ul>
<li>struct <a class="el" href="a00729.html">param_type</a>
</ul>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef _RealType <a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="a00728.html#ab360c146b8525f463321696a9f477aea">uniform_real_distribution</a> (_RealType __a=_RealType(0), _RealType __b=_RealType(1))
<li><a class="anchor" id="a9446b62ba8319bf304dbb74914ff5e84"></a><!-- doxytag: member="std::uniform_real_distribution::uniform_real_distribution" ref="a9446b62ba8319bf304dbb74914ff5e84" args="(const param_type &amp;__p)" -->
<b>uniform_real_distribution</b> (const <a class="el" href="a00729.html">param_type</a> &amp;__p)
<li><a class="anchor" id="aafed68e17446c5e5b811d2d30f60791a"></a><!-- doxytag: member="std::uniform_real_distribution::a" ref="aafed68e17446c5e5b811d2d30f60791a" args="() const " -->
<a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <b>a</b> () const 
<li><a class="anchor" id="a61d64c1f75e74662988ba68f2342bc88"></a><!-- doxytag: member="std::uniform_real_distribution::b" ref="a61d64c1f75e74662988ba68f2342bc88" args="() const " -->
<a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <b>b</b> () const 
<li><a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html#ac0764b8c25dff95f69e9fd706fdee31f">max</a> () const 
<li><a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html#a961e4b02d1e8a24648824e34b92712cb">min</a> () const 
<li><a class="anchor" id="a47571ff7ab5c085fbe909ef10000d4b0"></a><!-- doxytag: member="std::uniform_real_distribution::operator()" ref="a47571ff7ab5c085fbe909ef10000d4b0" args="(_UniformRandomNumberGenerator &amp;__urng, const param_type &amp;__p)" -->
template&lt;typename _UniformRandomNumberGenerator &gt; <a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <b>operator()</b> (_UniformRandomNumberGenerator &amp;__urng, const <a class="el" href="a00729.html">param_type</a> &amp;__p)
<li>template&lt;typename _UniformRandomNumberGenerator &gt; <a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html#add7bd89d691786ca5d077a60b1a5114e">operator()</a> (_UniformRandomNumberGenerator &amp;__urng)
<li>void <a class="el" href="a00728.html#af4f7361528ea5e52ba65da30a8172ec4">param</a> (const <a class="el" href="a00729.html">param_type</a> &amp;__param)
<li><a class="el" href="a00729.html">param_type</a> <a class="el" href="a00728.html#a2f89f011e8bed300469af26079d9763d">param</a> () const 
<li>void <a class="el" href="a00728.html#a32de9a167158ce4d66cf0b07296a13c8">reset</a> ()
</ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename _RealType = double&gt;<br/>
class std::uniform_real_distribution&lt; _RealType &gt;</h3>

<p>Uniform continuous distribution for random numbers. </p>
<p>A continuous random distribution on the range [min, max) with equal probability throughout the range. The URNG should be real-valued and deliver number in the range [0, 1). </p>

<p>Definition at line <a class="el" href="a00997_source.html#l01782">1782</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a6cbfd150bdd9f1a1d5e7b54605b4707c"></a><!-- doxytag: member="std::uniform_real_distribution::result_type" ref="a6cbfd150bdd9f1a1d5e7b54605b4707c" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef _RealType <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::<a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The type of the range of the distribution. </p>

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

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab360c146b8525f463321696a9f477aea"></a><!-- doxytag: member="std::uniform_real_distribution::uniform_real_distribution" ref="ab360c146b8525f463321696a9f477aea" args="(_RealType __a=_RealType(0), _RealType __b=_RealType(1))" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::<a class="el" href="a00728.html">uniform_real_distribution</a> </td>
          <td>(</td>
          <td class="paramtype">_RealType&#160;</td>
          <td class="paramname"><em>__a</em> = <code>_RealType(0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_RealType&#160;</td>
          <td class="paramname"><em>__b</em> = <code>_RealType(1)</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a <a class="el" href="a00728.html" title="Uniform continuous distribution for random numbers.">uniform_real_distribution</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__min</td><td>[IN] The lower bound of the distribution. </td></tr>
    <tr><td class="paramname">__max</td><td>[IN] The upper bound of the distribution. </td></tr>
  </table>
  </dd>
</dl>

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

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac0764b8c25dff95f69e9fd706fdee31f"></a><!-- doxytag: member="std::uniform_real_distribution::max" ref="ac0764b8c25dff95f69e9fd706fdee31f" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::max </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the inclusive upper bound of the distribution range. </p>

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

</div>
</div>
<a class="anchor" id="a961e4b02d1e8a24648824e34b92712cb"></a><!-- doxytag: member="std::uniform_real_distribution::min" ref="a961e4b02d1e8a24648824e34b92712cb" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::min </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the inclusive lower bound of the distribution range. </p>

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

</div>
</div>
<a class="anchor" id="add7bd89d691786ca5d077a60b1a5114e"></a><!-- doxytag: member="std::uniform_real_distribution::operator()" ref="add7bd89d691786ca5d077a60b1a5114e" args="(_UniformRandomNumberGenerator &amp;__urng)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
<div class="memtemplate">
template&lt;typename _UniformRandomNumberGenerator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00728.html#a6cbfd150bdd9f1a1d5e7b54605b4707c">result_type</a> <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">_UniformRandomNumberGenerator &amp;&#160;</td>
          <td class="paramname"><em>__urng</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Generating functions. </p>

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

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

<p>Referenced by <a class="el" href="a00997_source.html#l01888">std::uniform_real_distribution&lt; _RealType &gt;::operator()()</a>.</p>

</div>
</div>
<a class="anchor" id="af4f7361528ea5e52ba65da30a8172ec4"></a><!-- doxytag: member="std::uniform_real_distribution::param" ref="af4f7361528ea5e52ba65da30a8172ec4" args="(const param_type &amp;__param)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::param </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00729.html">param_type</a> &amp;&#160;</td>
          <td class="paramname"><em>__param</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the parameter set of the distribution. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__param</td><td>The new parameter set of the distribution. </td></tr>
  </table>
  </dd>
</dl>

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

</div>
</div>
<a class="anchor" id="a2f89f011e8bed300469af26079d9763d"></a><!-- doxytag: member="std::uniform_real_distribution::param" ref="a2f89f011e8bed300469af26079d9763d" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00729.html">param_type</a> <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::param </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the parameter set of the distribution. </p>

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

<p>Referenced by <a class="el" href="a00997_source.html#l01888">std::uniform_real_distribution&lt; _RealType &gt;::operator()()</a>, <a class="el" href="a00997_source.html#l01911">std::operator==()</a>, and <a class="el" href="a00998_source.html#l00968">std::operator&gt;&gt;()</a>.</p>

</div>
</div>
<a class="anchor" id="a32de9a167158ce4d66cf0b07296a13c8"></a><!-- doxytag: member="std::uniform_real_distribution::reset" ref="a32de9a167158ce4d66cf0b07296a13c8" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _RealType = double&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00728.html">std::uniform_real_distribution</a>&lt; _RealType &gt;::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resets the distribution state. </p>
<p>Does nothing for the uniform real distribution. </p>

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

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="a00997_source.html">random.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a01137.html">std</a>      </li>
      <li class="navelem"><a class="el" href="a00728.html">uniform_real_distribution</a>      </li>
      <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>