src/Utils/ArrayTools.php
public static function avg($array)
  {
    $total = 0;
    foreach ($array as $value) {
      if (is_numeric($value)) {
        $total += $value;
      }
    }
    return $total / count($array);
  }
public static function avg($array)
  {
    $total = 0;
    foreach ($array as $value) {
      if (is_numeric($value)) {
        $total += $value;
      }
    }
    return $total / count($array);
  }
Effectue la moyenne des valeurs du tableau

@param  array $array  Tableau source
@return float