array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stats-dens-pmf-binomial.php', 1 => 'stats_dens_pmf_binomial', 2 => 'Probability mass function of the binomial distribution', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic 函数', ), 'prev' => array ( 0 => 'function.stats-dens-normal.php', 1 => 'stats_dens_normal', ), 'next' => array ( 0 => 'function.stats-dens-pmf-hypergeometric.php', 1 => 'stats_dens_pmf_hypergeometric', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-dens-pmf-binomial.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stats_dens_pmf_binomial

(PECL stats >= 1.0.0)

stats_dens_pmf_binomialProbability mass function of the binomial distribution

说明

stats_dens_pmf_binomial(float $x, float $n, float $pi): float

Returns the probability mass at x, where the random variable follows the binomial distribution of which the number of trials is n and the success rate is pi.

参数

x

The value at which the probability mass is calculated

n

The number of trials of the distribution

pi

The success rate of the distribution

返回值

The probability mass at x or false for failure.