26 if (!is_numeric($aMean)) {
33 foreach ($aArgs as $k => $arg) {
42 if ((is_numeric($arg)) && (!is_string($arg))) {
43 $returnValue += ($arg - $aMean) ** 2;
67 if (!is_numeric($mean)) {
75 foreach ($aArgs as $k => $arg) {
79 if ((is_numeric($arg)) && (!is_string($arg))) {
80 $summer += (($arg - $mean) / $stdDev) ** 4;
87 return $summer * ($count * ($count + 1) /
88 (($count - 1) * ($count - 2) * ($count - 3))) - (3 * ($count - 1) ** 2 /
89 (($count - 2) * ($count - 3)));
108 public static function skew(...$args)
112 if (!is_numeric($mean)) {
116 if ($stdDev === 0.0 || is_string($stdDev)) {
120 $count = $summer = 0;
122 foreach ($aArgs as $k => $arg) {
124 } elseif (!is_numeric($arg)) {
128 if ((is_numeric($arg)) && (!is_string($arg))) {
129 $summer += (($arg - $mean) / $stdDev) ** 3;
136 return $summer * ($count / (($count - 1) * ($count - 2)));
static STDEV(... $args)
STDEV.
static kurtosis(... $args)
KURT.
static isMatrixValue($idx)
static flattenArrayIndexed($array)
Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing...
const COMPATIBILITY_OPENOFFICE
static skew(... $args)
SKEW.
static average(... $args)
AVERAGE.
static sumSquares(... $args)
DEVSQ.
static getCompatibilityMode()
Return the current Compatibility Mode.