array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stats-dens-laplace.php', 1 => 'stats_dens_laplace', 2 => 'Probability density function of the Laplace distribution', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic 函数', ), 'prev' => array ( 0 => 'function.stats-dens-gamma.php', 1 => 'stats_dens_gamma', ), 'next' => array ( 0 => 'function.stats-dens-logistic.php', 1 => 'stats_dens_logistic', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-dens-laplace.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stats_dens_laplace

(PECL stats >= 1.0.0)

stats_dens_laplaceProbability density function of the Laplace distribution

说明

stats_dens_laplace(float $x, float $ave, float $stdev): float

Returns the probability density at x, where the random variable follows the Laplace distribution of which the location parameter is ave and the scale parameter is stdev.

参数

x

The value at which the probability density is calculated

ave

The location parameter of the distribution

stdev

The shape parameter of the distribution

返回值

The probability density at x or false for failure.