<!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 negative binomial 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-logistic.html">stats_cdf_logistic</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-noncentral-chisquare.html">stats_cdf_noncentral_chisquare</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-negative-binomial" class="refentry"> <div class="refnamediv"> <h1 class="refname">stats_cdf_negative_binomial</h1> <p class="verinfo">(PECL stats >= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_cdf_negative_binomial</span> — <span class="dc-title">Calculates any one parameter of the negative binomial distribution given values for the others</span></p> </div> <div class="refsect1 description" id="refsect1-function.stats-cdf-negative-binomial-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">float</span> <span class="methodname"><strong>stats_cdf_negative_binomial</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 negative binomial 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, r, and p denotes cumurative distribution function, the number of failure, the number of success, and the success rate for each trial, 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>r</td> <td>p</td> </tr> <tr> <td>2</td> <td>x</td> <td>CDF</td> <td>r</td> <td>p</td> </tr> <tr> <td>3</td> <td>r</td> <td>x</td> <td>CDF</td> <td>p</td> </tr> <tr> <td>4</td> <td>p</td> <td>x</td> <td>CDF</td> <td>r</td> </tr> </tbody> </table> </p> </div> <div class="refsect1 parameters" id="refsect1-function.stats-cdf-negative-binomial-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-negative-binomial-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns CDF, x, r, or p, 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-logistic.html">stats_cdf_logistic</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-cdf-noncentral-chisquare.html">stats_cdf_noncentral_chisquare</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>