mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
85 lines
2.1 KiB
HTML
85 lines
2.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Generates a random deviate from the gamma distribution</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.stats-rand-gen-gamma" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">stats_rand_gen_gamma</h1>
|
|
<p class="verinfo">(PECL stats >= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_rand_gen_gamma</span> — <span class="dc-title">Generates a random deviate from the gamma distribution</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.stats-rand-gen-gamma-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>stats_rand_gen_gamma</strong></span>
|
|
( <span class="methodparam"><span class="type">float</span> <code class="parameter">$a</code></span>
|
|
, <span class="methodparam"><span class="type">float</span> <code class="parameter">$r</code></span>
|
|
) : <span class="type">float</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Generates a random deviate from the gamma distribution whose density is
|
|
(A**R)/Gamma(R) * X**(R-1) * Exp(-A*X).
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.stats-rand-gen-gamma-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">a</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
location parameter of Gamma distribution (<code class="parameter">a</code>
|
|
> 0).
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">r</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
shape parameter of Gamma distribution (<code class="parameter">r</code> >
|
|
0).
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.stats-rand-gen-gamma-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
A random deviate
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div></div></div></body></html> |