@@ 1987-1997 (lines=11) @@ | ||
1984 | if ($stdDev > 0) { |
|
1985 | $count = $summer = 0; |
|
1986 | // Loop through arguments |
|
1987 | foreach ($aArgs as $k => $arg) { |
|
1988 | if ((is_bool($arg)) && |
|
1989 | (!Functions::isMatrixValue($k))) { |
|
1990 | } else { |
|
1991 | // Is it a numeric value? |
|
1992 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
1993 | $summer += pow((($arg - $mean) / $stdDev), 4); |
|
1994 | ++$count; |
|
1995 | } |
|
1996 | } |
|
1997 | } |
|
1998 | ||
1999 | // Return |
|
2000 | if ($count > 3) { |
|
@@ 3037-3047 (lines=11) @@ | ||
3034 | ||
3035 | $count = $summer = 0; |
|
3036 | // Loop through arguments |
|
3037 | foreach ($aArgs as $k => $arg) { |
|
3038 | if ((is_bool($arg)) && |
|
3039 | (!Functions::isMatrixValue($k))) { |
|
3040 | } else { |
|
3041 | // Is it a numeric value? |
|
3042 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
3043 | $summer += pow((($arg - $mean) / $stdDev), 3); |
|
3044 | ++$count; |
|
3045 | } |
|
3046 | } |
|
3047 | } |
|
3048 | ||
3049 | if ($count > 2) { |
|
3050 | return $summer * ($count / (($count - 1) * ($count - 2))); |