<!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>Calculates any one parameter of the uniform distribution given values for the others</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stats-cdf-t.html">stats_cdf_t</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-weibull.html">stats_cdf_weibull</a></div> <div class="up"><a href="ref.stats.html">Statistic Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.stats-cdf-uniform" class="refentry"> <div class="refnamediv"> <h1 class="refname">stats_cdf_uniform</h1> <p class="verinfo">(PECL stats >= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_cdf_uniform</span> — <span class="dc-title">Calculates any one parameter of the uniform distribution given values for the others</span></p> </div> <div class="refsect1 description" id="refsect1-function.stats-cdf-uniform-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">float</span> <span class="methodname"><strong>stats_cdf_uniform</strong></span> ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$par1</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$par2</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$par3</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$which</code></span> )</div> <p class="para rdfs-comment"> Returns the cumulative distribution function, its inverse, or one of its parameters, of the uniform distribution. The kind of the return value and parameters (<code class="parameter">par1</code>, <code class="parameter">par2</code>, and <code class="parameter">par3</code>) are determined by <code class="parameter">which</code>. </p> <p class="para"> The following table lists the return value and parameters by <code class="parameter">which</code>. CDF, x, a, and b denotes cumurative distribution function, the value of the random variable, the lower bound and the higher bound of the uniform distribution, respectively. <table class="doctable table"> <caption><strong>Return value and parameters</strong></caption> <thead> <tr> <th><code class="parameter">which</code></th> <th>Return value</th> <th><code class="parameter">par1</code></th> <th><code class="parameter">par2</code></th> <th><code class="parameter">par3</code></th> </tr> </thead> <tbody class="tbody"> <tr> <td>1</td> <td>CDF</td> <td>x</td> <td>a</td> <td>b</td> </tr> <tr> <td>2</td> <td>x</td> <td>CDF</td> <td>a</td> <td>b</td> </tr> <tr> <td>3</td> <td>a</td> <td>x</td> <td>CDF</td> <td>b</td> </tr> <tr> <td>4</td> <td>b</td> <td>x</td> <td>CDF</td> <td>a</td> </tr> </tbody> </table> </p> </div> <div class="refsect1 parameters" id="refsect1-function.stats-cdf-uniform-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <code class="parameter">par1</code></dt> <dd> <p class="para"> The first parameter </p> </dd> <dt> <code class="parameter">par2</code></dt> <dd> <p class="para"> The second parameter </p> </dd> <dt> <code class="parameter">par3</code></dt> <dd> <p class="para"> The third parameter </p> </dd> <dt> <code class="parameter">which</code></dt> <dd> <p class="para"> The flag to determine what to be calculated </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.stats-cdf-uniform-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns CDF, x, a, or b, determined by <code class="parameter">which</code>. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stats-cdf-t.html">stats_cdf_t</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-weibull.html">stats_cdf_weibull</a></div> <div class="up"><a href="ref.stats.html">Statistic Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>