PHP 7.4.9 Released!

stats_dens_normal

(PECL stats >= 1.0.0)

stats_dens_normalFonction de densité de la loi normale

Description

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

Retourne la probabilité de densité à x, où la variable aléatoire suit la loi normale dont l'espérance est ave et l'écart type est stdev.

Liste de paramètres

x

La valeur où la probabilité de densité est calculée.

ave

L'espérance de la loi.

stdev

L'écart type de la loi.

Valeurs de retour

La probabilité de densité à x ou ou FALSE si une erreur survient

add a note add a note

User Contributed Notes 3 notes

up
0
Hector
1 year ago
This functions will be the equivalent for "DISTR.NORM.N" on excel, like an other user said it's for Gaussian normal distribution.

$x as value to analyze
$ave as average
$stdev as deviation
up
0
Anonymous
11 years ago
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.
up
-6
Anonymous
10 years ago
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
To Top