Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php calculate variance

$variance = array_sum(array_map(function ($x) use ($fMean) { 
    return pow($x - $fMean, 2);
}, $array)) / count($array);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #calculate #variance
ADD COMMENT
Topic
Name
2+2 =