<!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 negative binomial distribution</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stats-rand-gen-gamma.html">stats_rand_gen_gamma</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-rand-gen-ibinomial.html">stats_rand_gen_ibinomial</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-rand-gen-ibinomial-negative" class="refentry"> <div class="refnamediv"> <h1 class="refname">stats_rand_gen_ibinomial_negative</h1> <p class="verinfo">(PECL stats >= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_rand_gen_ibinomial_negative</span> — <span class="dc-title">Generates a random deviate from the negative binomial distribution</span></p> </div> <div class="refsect1 description" id="refsect1-function.stats-rand-gen-ibinomial-negative-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>stats_rand_gen_ibinomial_negative</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$n</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$p</code></span> )</div> <p class="para rdfs-comment"> Returns a random deviate from a negative binomial distribution where the number of success is <code class="parameter">n</code> and the success rate is <code class="parameter">p</code>. </p> </div> <div class="refsect1 parameters" id="refsect1-function.stats-rand-gen-ibinomial-negative-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <code class="parameter">n</code></dt> <dd> <p class="para"> The number of success </p> </dd> <dt> <code class="parameter">p</code></dt> <dd> <p class="para"> The success rate </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.stats-rand-gen-ibinomial-negative-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> A random deviate, which is the number of failure. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stats-rand-gen-gamma.html">stats_rand_gen_gamma</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stats-rand-gen-ibinomial.html">stats_rand_gen_ibinomial</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>