array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.stats-rand-gen-ibinomial-negative.php', 1 => 'stats_rand_gen_ibinomial_negative', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic 関数', ), 'prev' => array ( 0 => 'function.stats-rand-gen-gamma.php', 1 => 'stats_rand_gen_gamma', ), 'next' => array ( 0 => 'function.stats-rand-gen-ibinomial.php', 1 => 'stats_rand_gen_ibinomial', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-rand-gen-ibinomial-negative.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL stats >= 1.0.0)
stats_rand_gen_ibinomial_negative — Generates a random deviate from the negative binomial distribution
Returns a random deviate from a negative binomial distribution where the number of success is
n
and the success rate is p
.
n
The number of success
p
The success rate
A random deviate, which is the number of failure.