32 if (is_numeric($aMean) && ($aMean > 0)) {
35 return $aMean ** (1 / $aCount);
65 foreach ($aArgs as $arg) {
67 if ((is_numeric($arg)) && (!is_string($arg))) {
71 $returnValue += (1 / $arg);
78 return 1 / ($returnValue / $aCount);
98 public static function trim(...$args)
103 $percent = array_pop($aArgs);
105 if ((is_numeric($percent)) && (!is_string($percent))) {
106 if (($percent < 0) || ($percent > 1)) {
111 foreach ($aArgs as $arg) {
113 if ((is_numeric($arg)) && (!is_string($arg))) {
121 for (
$i = 0;
$i < $discard; ++
$i) {
static product(... $args)
PRODUCT.
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static trim(... $args)
TRIMMEAN.
static harmonic(... $args)
HARMEAN.
static min(... $args)
MIN.
static COUNT(... $args)
COUNT.
static geometric(... $args)
GEOMEAN.
static average(... $args)
AVERAGE.