function pData::getSerieAverage
Search API
5.x pData.class.php | pData::getSerieAverage($Serie) |
2 calls to pData::getSerieAverage()
- pData::getCoefficientOfVariation in inc/
pchart/ pchart/ class/ pData.class.php - pData::getStandardDeviation in inc/
pchart/ pchart/ class/ pData.class.php
File
- inc/
pchart/ pchart/ class/ pData.class.php, line 271
Class
Code
function getSerieAverage($Serie)
{
if (isset($this->Data ["Series"][$Serie]))
{
$SerieData = $this->stripVOID($this->Data ["Series"][$Serie]["Data"]);
return (array_sum($SerieData) / sizeof($SerieData));
}
else {
return (NULL);
}
}