uTools-Manuals/docs/php/stats_standard_deviation.html
2019-04-08 23:22:26 +08:00

90 lines
2.7 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>Returns the standard deviation</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.stats-standard-deviation" class="refentry">
<div class="refnamediv">
<h1 class="refname">stats_standard_deviation</h1>
<p class="verinfo">(PECL stats &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_standard_deviation</span> &mdash; <span class="dc-title">Returns the standard deviation</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.stats-standard-deviation-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>stats_standard_deviation</strong></span>
( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$sample</code><span class="initializer"> = <strong><code>FALSE</code></strong></span></span>
] ) : <span class="type">float</span></div>
<p class="para rdfs-comment">
Returns the standard deviation of the values in <code class="parameter">a</code>.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.stats-standard-deviation-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">a</code></dt>
<dd>
<p class="para">
The array of data to find the standard deviation for. Note that all
values of the array will be cast to <span class="type"><a href="language.types.float.html" class="type float">float</a></span>.
</p>
</dd>
<dt>
<code class="parameter">sample</code></dt>
<dd>
<p class="para">
Indicates if <code class="parameter">a</code> represents a sample of the
population; defaults to <strong><code>FALSE</code></strong>.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.stats-standard-deviation-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns the standard deviation on success; <strong><code>FALSE</code></strong> on failure.
</p>
</div>
<div class="refsect1 errors" id="refsect1-function.stats-standard-deviation-errors">
<h3 class="title">错误/异常</h3>
<p class="para">
Raises an <strong><code>E_WARNING</code></strong> when there are fewer than 2
values in <code class="parameter">a</code>.
</p>
</div>
</div></div></div></body></html>