function pData::getCoefficientOfVariation
Search API
5.x pData.class.php | pData::getCoefficientOfVariation($Serie) |
File
- inc/
pchart/ pchart/ class/ pData.class.php, line 329
Class
Code
function getCoefficientOfVariation($Serie)
{
if (isset($this->Data ["Series"][$Serie]))
{
$Average = $this->getSerieAverage($Serie);
$StandardDeviation = $this->getStandardDeviation($Serie);
if ($StandardDeviation != 0) {
return ($StandardDeviation / $Average);
}
else {
return (NULL);
}
}
else {
return (NULL);
}
}