@@ 1912-1922 (lines=11) @@ | ||
1909 | if ($stdDev > 0) { |
|
1910 | $count = $summer = 0; |
|
1911 | // Loop through arguments |
|
1912 | foreach ($aArgs as $k => $arg) { |
|
1913 | if ((is_bool($arg)) && |
|
1914 | (!Functions::isMatrixValue($k))) { |
|
1915 | } else { |
|
1916 | // Is it a numeric value? |
|
1917 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
1918 | $summer += pow((($arg - $mean) / $stdDev), 4); |
|
1919 | ++$count; |
|
1920 | } |
|
1921 | } |
|
1922 | } |
|
1923 | ||
1924 | // Return |
|
1925 | if ($count > 3) { |
|
@@ 2906-2916 (lines=11) @@ | ||
2903 | ||
2904 | $count = $summer = 0; |
|
2905 | // Loop through arguments |
|
2906 | foreach ($aArgs as $k => $arg) { |
|
2907 | if ((is_bool($arg)) && |
|
2908 | (!Functions::isMatrixValue($k))) { |
|
2909 | } else { |
|
2910 | // Is it a numeric value? |
|
2911 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
2912 | $summer += pow((($arg - $mean) / $stdDev), 3); |
|
2913 | ++$count; |
|
2914 | } |
|
2915 | } |
|
2916 | } |
|
2917 | ||
2918 | if ($count > 2) { |
|
2919 | return $summer * ($count / (($count - 1) * ($count - 2))); |