blob: a823e9f949b1a1a1324a12404726f1c7924201e8 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: RangedUniformDistribution&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">19.08</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">RangedUniformDistribution&lt; T &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Uniform distribution within a given number of sub-ranges.
<a href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_random_8h_source.xhtml">Random.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad73e6ce8150dae7eb9e0d4bdb85f3eea"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ad73e6ce8150dae7eb9e0d4bdb85f3eea">DT</a> = typename std::conditional&lt; std::is_integral&lt; T &gt;::value, std::uniform_int_distribution&lt; T &gt;, std::uniform_real_distribution&lt; float &gt; &gt;::type</td></tr>
<tr class="separator:ad73e6ce8150dae7eb9e0d4bdb85f3eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a712fe00c49a4ab6f1feb0068cfb856a4"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> = T</td></tr>
<tr class="separator:a712fe00c49a4ab6f1feb0068cfb856a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7cfd8e78331b6abcb10e5c35b6e3603"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ae7cfd8e78331b6abcb10e5c35b6e3603">range_pair</a> = std::pair&lt; <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>, <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> &gt;</td></tr>
<tr class="separator:ae7cfd8e78331b6abcb10e5c35b6e3603"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:acdb30d4796b1e97c4c7edd03da2b690b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#acdb30d4796b1e97c4c7edd03da2b690b">RangedUniformDistribution</a> (<a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> low, <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> high, const std::vector&lt; <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ae7cfd8e78331b6abcb10e5c35b6e3603">range_pair</a> &gt; &amp;exclude_ranges)</td></tr>
<tr class="memdesc:acdb30d4796b1e97c4c7edd03da2b690b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#acdb30d4796b1e97c4c7edd03da2b690b">More...</a><br /></td></tr>
<tr class="separator:acdb30d4796b1e97c4c7edd03da2b690b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f59630d99c12348ad67924da225bb6"><td class="memTemplParams" colspan="2">template&lt;class URNG &gt; </td></tr>
<tr class="memitem:a50f59630d99c12348ad67924da225bb6"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a50f59630d99c12348ad67924da225bb6">operator()</a> (URNG &amp;g)</td></tr>
<tr class="memdesc:a50f59630d99c12348ad67924da225bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate random number. <a href="#a50f59630d99c12348ad67924da225bb6">More...</a><br /></td></tr>
<tr class="separator:a50f59630d99c12348ad67924da225bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class arm_compute::utils::random::RangedUniformDistribution&lt; T &gt;</h3>
<p>Uniform distribution within a given number of sub-ranges. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>Distribution primitive type </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00043">43</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ad73e6ce8150dae7eb9e0d4bdb85f3eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad73e6ce8150dae7eb9e0d4bdb85f3eea">&#9670;&nbsp;</a></span>DT</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ad73e6ce8150dae7eb9e0d4bdb85f3eea">DT</a> = typename std::conditional&lt;std::is_integral&lt;T&gt;::value, std::uniform_int_distribution&lt;T&gt;, std::uniform_real_distribution&lt;float&gt; &gt;::type</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00048">48</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
</div>
</div>
<a id="ae7cfd8e78331b6abcb10e5c35b6e3603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7cfd8e78331b6abcb10e5c35b6e3603">&#9670;&nbsp;</a></span>range_pair</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ae7cfd8e78331b6abcb10e5c35b6e3603">range_pair</a> = std::pair&lt;<a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>, <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>&gt;</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00050">50</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
</div>
</div>
<a id="a712fe00c49a4ab6f1feb0068cfb856a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a712fe00c49a4ab6f1feb0068cfb856a4">&#9670;&nbsp;</a></span>result_type</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> = T</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00049">49</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="acdb30d4796b1e97c4c7edd03da2b690b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdb30d4796b1e97c4c7edd03da2b690b">&#9670;&nbsp;</a></span>RangedUniformDistribution()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml">RangedUniformDistribution</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>&#160;</td>
<td class="paramname"><em>low</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a>&#160;</td>
<td class="paramname"><em>high</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector&lt; <a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ae7cfd8e78331b6abcb10e5c35b6e3603">range_pair</a> &gt; &amp;&#160;</td>
<td class="paramname"><em>exclude_ranges</em>&#160;</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>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">low</td><td>lowest value in the range (inclusive) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">high</td><td>highest value in the range (inclusive for uniform_int_distribution, exclusive for uniform_real_distribution) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">exclude_ranges</td><td>Ranges to exclude from the generator </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00059">59</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; : _distributions(), _selector()</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> clow = low;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> &amp;erange : exclude_ranges)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> <a class="code" href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a> = std::is_integral&lt;result_type&gt;::value ? 1 : static_cast&lt;result_type&gt;(<a class="code" href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">std::numeric_limits&lt;float&gt;::epsilon</a>());</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a>(clow &gt; erange.first || clow &gt;= erange.second);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; _distributions.emplace_back(<a class="code" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ad73e6ce8150dae7eb9e0d4bdb85f3eea">DT</a>(clow, erange.first - <a class="code" href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a>));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; clow = erange.second + <a class="code" href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a>(clow &gt; high);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; _distributions.emplace_back(<a class="code" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ad73e6ce8150dae7eb9e0d4bdb85f3eea">DT</a>(clow, high));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; _selector = std::uniform_int_distribution&lt;uint32_t&gt;(0, _distributions.size() - 1);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; }</div><div class="ttc" id="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution_xhtml_a712fe00c49a4ab6f1feb0068cfb856a4"><div class="ttname"><a href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">arm_compute::utils::random::RangedUniformDistribution::result_type</a></div><div class="ttdeci">T result_type</div><div class="ttdef"><b>Definition:</b> <a href="_random_8h_source.xhtml#l00049">Random.h:49</a></div></div>
<div class="ttc" id="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution_xhtml_ad73e6ce8150dae7eb9e0d4bdb85f3eea"><div class="ttname"><a href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#ad73e6ce8150dae7eb9e0d4bdb85f3eea">arm_compute::utils::random::RangedUniformDistribution::DT</a></div><div class="ttdeci">typename std::conditional&lt; std::is_integral&lt; T &gt;::value, std::uniform_int_distribution&lt; T &gt;, std::uniform_real_distribution&lt; float &gt; &gt;::type DT</div><div class="ttdef"><b>Definition:</b> <a href="_random_8h_source.xhtml#l00048">Random.h:48</a></div></div>
<div class="ttc" id="_asymm_helpers_8cpp_xhtml_a552dc3787d7ea1675f3e4e8993501d58"><div class="ttname"><a href="_asymm_helpers_8cpp.xhtml#a552dc3787d7ea1675f3e4e8993501d58">epsilon</a></div><div class="ttdeci">constexpr float epsilon</div><div class="ttdef"><b>Definition:</b> <a href="_asymm_helpers_8cpp_source.xhtml#l00033">AsymmHelpers.cpp:33</a></div></div>
<div class="ttc" id="_error_8h_xhtml_a54a6080c9f4df1f908e57a9bbb46f5da"><div class="ttname"><a href="_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON(cond)</div><div class="ttdoc">If the condition is true then an error message is printed and an exception thrown.</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00337">Error.h:337</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_asymm_helpers_8cpp_source.xhtml#l00033">epsilon</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a50f59630d99c12348ad67924da225bb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50f59630d99c12348ad67924da225bb6">&#9670;&nbsp;</a></span>operator()()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml#a712fe00c49a4ab6f1feb0068cfb856a4">result_type</a> operator() </td>
<td>(</td>
<td class="paramtype">URNG &amp;&#160;</td>
<td class="paramname"><em>g</em></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>Generate random number. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">URNG</td><td>Random number generator object type</td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">g</td><td>A uniform random number generator object, used as the source of randomness.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new random number. </dd></dl>
<p class="definition">Definition at line <a class="el" href="_random_8h_source.xhtml#l00085">85</a> of file <a class="el" href="_random_8h_source.xhtml">Random.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rand_select = _selector(g);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">return</span> _distributions[rand_select](g);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; }</div></div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>arm_compute/core/utils/misc/<a class="el" href="_random_8h_source.xhtml">Random.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1utils.xhtml">utils</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1utils_1_1random.xhtml">random</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1utils_1_1random_1_1_ranged_uniform_distribution.xhtml">RangedUniformDistribution</a></li>
<li class="footer">Generated on Mon Sep 2 2019 11:47:42 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>