A simple function designed to calculate the standard deviation of an array of values.
Download
View Source (print view)
Rating : 4.7
Views : 471
function standard_deviation($array) {
//Get sum of array values
while(list($key,$val) = each($array)) {
$total += $val;
}
reset($array);
$mean = $total/count($array);
while(list($key,$val) = each($array)) {
$sum += pow(($val-$mean),2);
}
$var = sqrt($sum/(count($array)-1));
return $var;
}
php tools and 0=1 union select, rtttl, read mysql field, security, snnap_ss, salars77, paper_without_wood, guest, enfactuation, rent a car, download, regirstration form, php_snips, fedex, call php', userstatusinonline, php_script"_class="neww"_target="_blank"_title="im_neuen, best ide, php script" class="neww" target="_b..., forum, p t test paired