public function getHarmonicMean($Serie)
    {
        if (isset($this->Data["Series"][$Serie])) {
            $SerieData = $this->stripVOID($this->Data["Series"][$Serie]["Data"]);
            $Seriesum = 0;
            foreach ($SerieData as $Value) {
                $Seriesum = $Seriesum + 1 / $Value;
            }
            return sizeof($SerieData) / $Seriesum;
        }

        return null;
    }
public function getHarmonicMean($Serie)
    {
        if (isset($this->Data["Series"][$Serie])) {
            $SerieData = $this->stripVOID($this->Data["Series"][$Serie]["Data"]);
            $Seriesum = 0;
            foreach ($SerieData as $Value) {
                $Seriesum = $Seriesum + 1 / $Value;
            }
            return sizeof($SerieData) / $Seriesum;
        }

        return null;
    }
public function getHarmonicMean ( $ Serie ) { if ( isset ( $ this -> Data [ "Series" ] [ $ Serie ] ) ) { $ SerieData = $ this -> stripVOID ( $ this -> Data [ "Series" ] [ $ Serie ] [ "Data" ] ) ; $ Seriesum = 0 ; foreach ( $ SerieData as $ Value ) { $ Seriesum = $ Seriesum + 1 / $ Value ; } return sizeof ( $ SerieData ) / $ Seriesum ; } return null ; }
Return the harmonic mean of the given serie
@param string $Serie
@return int|null
Return the harmonic mean of the given serie