Statistic 函数
在线手册:中文  英文

stats_dens_normal

(PECL stats >= 1.0.0)

stats_dens_normalNot documented

说明

float stats_dens_normal ( float $x , float $ave , float $stdev )
Warning

本函数还未编写文档,仅有参数列表。

参数

x

ave

stdev

返回值


Statistic 函数
在线手册:中文  英文

用户评论:

Anonymous (2009-08-10 16:12:12)

There's a way to try it out:

<?php
...
echo
"<pre>\n";
for(
$x=-2;$x<=2;$x+=0.1){
  echo
"$i; ".stats_dens_normal($x,1,1)."\n";
}
echo
"</pre>\n";
?>

Observe the result (to determine yourself), or
save it as "stats_dens_normal.csv",
load it into Open Office and make a graph of it

Anonymous (2009-02-28 14:37:29)

I'm not certain that I've figured this one out correctly but it should return the value of a (Gaussian) normal distribution of the given properties at the given location.
$x - the X-Value to request
$ave - the 'expected value' (i.e. location of the peak) for the distribution. For most uses this will just be 0.
$stdev - the standard deviation of the distribution. For most uses this will be 1.

易百教程