%PDF- %PDF-
| Direktori : /usr/share/doc/imath-devel/html/classes/ |
| Current File : //usr/share/doc/imath-devel/html/classes/Rand48.html |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rand48 — Imath Documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/bizstyle.css" type="text/css" />
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="../_static/bizstyle.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Shear6" href="Shear6.html" />
<link rel="prev" title="Rand32" href="Rand32.html" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!--[if lt IE 9]>
<script src="_static/css3-mediaqueries.js"></script>
<![endif]-->
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="Shear6.html" title="Shear6"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="Rand32.html" title="Rand32"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li>
<li class="nav-item nav-item-this"><a href="">Rand48</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="rand48">
<h1>Rand48<a class="headerlink" href="#rand48" title="Permalink to this headline">¶</a></h1>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#include <Imath/ImathRandom.h></span>
</pre></div>
</div>
<p>The <code class="docutils literal notranslate"><span class="pre">Rand48</span></code> class is a fast pseudo-random number generator based on
the C Standard Library functions erand48(), nrand48() & company. It
generates a uniformly distributed sequence.</p>
<dl class="cpp class">
<dt id="_CPPv4N5Imath6Rand48E">
<span id="_CPPv3N5Imath6Rand48E"></span><span id="_CPPv2N5Imath6Rand48E"></span><span id="Imath::Rand48"></span><span class="target" id="class_imath_1_1_rand48"></span><em class="property">class </em><code class="sig-prename descclassname">Imath<code class="sig-prename descclassname">::</code></code><code class="sig-name descname">Rand48</code><a class="headerlink" href="#_CPPv4N5Imath6Rand48E" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Random-number generator based on the C Standard Library functions erand48(), nrand48() & company; generates a uniformly distributed sequence. </p>
<div class="breathe-sectiondef docutils container">
<p class="breathe-sectiondef-title rubric">Public Functions</p>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand486Rand48Em">
<span id="_CPPv3N5Imath6Rand486Rand48Em"></span><span id="_CPPv2N5Imath6Rand486Rand48Em"></span><span id="Imath::Rand48::Rand48__unsigned-l-i"></span><span class="target" id="class_imath_1_1_rand48_1a948f0e8ca75f5809fc66a50cd931fe1e"></span><em class="property">inline</em> <code class="sig-name descname">Rand48</code><span class="sig-paren">(</span>unsigned long int <em>seed</em> = 0<span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand486Rand48Em" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Constructor. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand484initEm">
<span id="_CPPv3N5Imath6Rand484initEm"></span><span id="_CPPv2N5Imath6Rand484initEm"></span><span id="Imath::Rand48::init__unsigned-l-i"></span><span class="target" id="class_imath_1_1_rand48_1a177478705579049afd6ed4e1aa27463b"></span><em class="property">inline</em> void <code class="sig-name descname">init</code><span class="sig-paren">(</span>unsigned long int <em>seed</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand484initEm" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Re-initialize with a given seed. </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand485nextbEv">
<span id="_CPPv3N5Imath6Rand485nextbEv"></span><span id="_CPPv2N5Imath6Rand485nextbEv"></span><span id="Imath::Rand48::nextb"></span><span class="target" id="class_imath_1_1_rand48_1a9268bc226cf75302d6f08222821cf0b5"></span><em class="property">inline</em> bool <code class="sig-name descname">nextb</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand485nextbEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [false, true]) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand485nextiEv">
<span id="_CPPv3N5Imath6Rand485nextiEv"></span><span id="_CPPv2N5Imath6Rand485nextiEv"></span><span id="Imath::Rand48::nexti"></span><span class="target" id="class_imath_1_1_rand48_1adeb65e80b163d072201d1f3be80c0d6b"></span><em class="property">inline</em> long int <code class="sig-name descname">nexti</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand485nextiEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [0 … 0x7fffffff]) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand485nextfEv">
<span id="_CPPv3N5Imath6Rand485nextfEv"></span><span id="_CPPv2N5Imath6Rand485nextfEv"></span><span id="Imath::Rand48::nextf"></span><span class="target" id="class_imath_1_1_rand48_1a02a13847cb278967a451dd5d6bd69d9d"></span><em class="property">inline</em> double <code class="sig-name descname">nextf</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand485nextfEv" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range: [0 … 1[) </p>
</dd></dl>
<dl class="cpp function">
<dt id="_CPPv4N5Imath6Rand485nextfEdd">
<span id="_CPPv3N5Imath6Rand485nextfEdd"></span><span id="_CPPv2N5Imath6Rand485nextfEdd"></span><span id="Imath::Rand48::nextf__double.double"></span><span class="target" id="class_imath_1_1_rand48_1a98129642cf931360f3819ed30131ad79"></span><em class="property">inline</em> double <code class="sig-name descname">nextf</code><span class="sig-paren">(</span>double <em>rangeMin</em>, double <em>rangeMax</em><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N5Imath6Rand485nextfEdd" title="Permalink to this definition">¶</a><br /></dt>
<dd><p>Get the next value in the sequence (range [rangeMin … rangeMax[) </p>
</dd></dl>
</div>
</dd></dl>
</div>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/imath-logo-blue.png" alt="Logo"/>
</a></p>
<h4>Previous topic</h4>
<p class="topless"><a href="Rand32.html"
title="previous chapter">Rand32</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="Shear6.html"
title="next chapter">Shear6</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/classes/Rand48.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="Shear6.html" title="Shear6"
>next</a> |</li>
<li class="right" >
<a href="Rand32.html" title="Rand32"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Imath</a> »</li>
<li class="nav-item nav-item-this"><a href="">Rand48</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2021, Contributors to the OpenEXR Project.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3.
</div>
</body>
</html>