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