21 public static function VAR(...$args)
25 $summerA = $summerB = 0.0;
30 foreach ($aArgs as $arg) {
31 $arg = self::datatypeAdjustmentBooleans($arg);
34 if ((is_numeric($arg)) && (!is_string($arg))) {
35 $summerA += ($arg * $arg);
45 return ($summerA - $summerB) / ($aCount * ($aCount - 1));
63 public static function VARA(...$args)
67 $summerA = $summerB = 0.0;
72 foreach ($aArgs as $k => $arg) {
78 if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg !=
'')))) {
79 $arg = self::datatypeAdjustmentAllowStrings($arg);
80 $summerA += ($arg * $arg);
91 return ($summerA - $summerB) / ($aCount * ($aCount - 1));
109 public static function VARP(...$args)
114 $summerA = $summerB = 0.0;
119 foreach ($aArgs as $arg) {
120 $arg = self::datatypeAdjustmentBooleans($arg);
123 if ((is_numeric($arg)) && (!is_string($arg))) {
124 $summerA += ($arg * $arg);
132 $summerB *= $summerB;
134 return ($summerA - $summerB) / ($aCount * $aCount);
152 public static function VARPA(...$args)
156 $summerA = $summerB = 0.0;
161 foreach ($aArgs as $k => $arg) {
167 if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg !=
'')))) {
168 $arg = self::datatypeAdjustmentAllowStrings($arg);
169 $summerA += ($arg * $arg);
178 $summerB *= $summerB;
180 return ($summerA - $summerB) / ($aCount * $aCount);
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static isMatrixValue($idx)
static VARPA(... $args)
VARPA.
static flattenArrayIndexed($array)
Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing...
static VAR(... $args)
VAR.
static VARA(... $args)
VARA.
static VARP(... $args)
VARP.