Files
hustoj/web/cppreference-zh/chmhelp/cpp-numeric-random-lognormal_distribution-operator().html
2025-08-01 12:57:54 +08:00

78 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head><meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>std::lognormal_distribution&lt;RealType&gt;::operator()</title>
<link rel="stylesheet" href="ext.css" />
<link rel="stylesheet" href="site_modules.css" />
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_numeric_random_lognormal_distribution_operator skin-cppreference2 action-view cpp-page-template cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">std::lognormal_distribution&lt;RealType&gt;::</span>operator()</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-numeric.html">numeric</a>&lrm; | <a href="cpp-numeric-random.html">random</a>&lrm; | <a href="cpp-numeric-random-lognormal_distribution.html">lognormal distribution</a></span></div>
<div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr" xml:lang="zh">
<div class="t-page-template" style="">
<p></p>
</div>
<table class="t-dcl-begin">
<tbody>
<tr class="t-dcl t-since-cxx11">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">template</span><span class="sy1">&lt;</span> <span class="kw1">class</span> Generator <span class="sy1">&gt;</span><br />
result_type operator<span class="br0">(</span><span class="br0">)</span><span class="br0">(</span> Generator<span class="sy3">&amp;</span> g <span class="br0">)</span><span class="sy4">;</span></span></div>
</td>
<td>(1)</td>
<td><span class="t-mark-rev t-since-cxx11">(C++11 &#36215;)</span></td>
</tr>
<tr class="t-dcl t-since-cxx11">
<td>
<div><span class="mw-geshi cpp source-cpp"><span class="kw1">template</span><span class="sy1">&lt;</span> <span class="kw1">class</span> Generator <span class="sy1">&gt;</span><br />
result_type operator<span class="br0">(</span><span class="br0">)</span><span class="br0">(</span> Generator<span class="sy3">&amp;</span> g, <span class="kw4">const</span> param_type<span class="sy3">&amp;</span> params <span class="br0">)</span><span class="sy4">;</span></span></div>
</td>
<td>(2)</td>
<td><span class="t-mark-rev t-since-cxx11">(C++11 &#36215;)</span></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#26681;&#25454;&#20851;&#32852;&#30340;&#27010;&#29575;&#20998;&#24067;&#20989;&#25968;&#29983;&#25104;&#38543;&#26426;&#25968;&#12290;&#30001;&#35843;&#29992; <span class="t-c"><span class="mw-geshi cpp source-cpp">g.<span class="me1">operator</span><span class="br0">(</span><span class="br0">)</span></span></span> &#33719;&#24471;&#29109;&#12290;</p>
<p>&#31532;&#19968;&#29256;&#26412;&#20351;&#29992;&#20851;&#32852;&#30340;&#21442;&#25968;&#38598;&#65292;&#31532;&#20108;&#29256;&#26412;&#29992; <code>params</code> &#12290;&#19981;&#20462;&#25913;&#20851;&#32852;&#21442;&#25968;&#38598;&#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">&#21442;&#25968;</span></h3>
<table class="t-par-begin">
<tr class="t-par">
<td>g</td>
<td>-</td>
<td>&#22343;&#21248;&#38543;&#26426;&#20301;&#29983;&#25104;&#22120;&#23545;&#35937;</td>
</tr>
<tr class="t-par">
<td>params</td>
<td>-</td>
<td>&#29992;&#20110;&#26367;&#20195;&#34987;&#20851;&#32852;&#32773;&#30340;&#20998;&#24067;&#21442;&#25968;&#38598;</td>
</tr>
<tr class="t-par-hitem">
<td colspan="3">&#31867;&#22411;&#35201;&#27714;</td>
</tr>
<tr class="t-par-req">
<td colspan="3">-
<div class="spacer"></div>
<code>Generator</code> &#24517;&#39035;&#28385;&#36275;<a href="cpp-named_req-UniformRandomBitGenerator.html"><span style="font-style:italic">&#22343;&#21248;&#38543;&#26426;&#20301;&#29983;&#25104;&#22120;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(UniformRandomBitGenerator)</span></a> &#30340;&#35201;&#27714;&#12290;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p>&#29983;&#25104;&#30340;&#38543;&#26426;&#25968;&#12290;</p>
<h3><span class="mw-headline" id=".E5.A4.8D.E6.9D.82.E5.BA.A6">&#22797;&#26434;&#24230;</span></h3>
<p>&#22343;&#25674;&#24120;&#25968;&#27425;&#35843;&#29992; <span class="t-c"><span class="mw-geshi cpp source-cpp">g.<span class="me1">operator</span><span class="br0">(</span><span class="br0">)</span></span></span> &#12290;</p>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>