| @@ 1882-1892 (lines=11) @@ | ||
| 1879 | if ($stdDev > 0) { |
|
| 1880 | $count = $summer = 0; |
|
| 1881 | // Loop through arguments |
|
| 1882 | foreach ($aArgs as $k => $arg) { |
|
| 1883 | if ((is_bool($arg)) && |
|
| 1884 | (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { |
|
| 1885 | } else { |
|
| 1886 | // Is it a numeric value? |
|
| 1887 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
| 1888 | $summer += pow((($arg - $mean) / $stdDev),4) ; |
|
| 1889 | ++$count; |
|
| 1890 | } |
|
| 1891 | } |
|
| 1892 | } |
|
| 1893 | ||
| 1894 | // Return |
|
| 1895 | if ($count > 3) { |
|
| @@ 2863-2873 (lines=11) @@ | ||
| 2860 | ||
| 2861 | $count = $summer = 0; |
|
| 2862 | // Loop through arguments |
|
| 2863 | foreach ($aArgs as $k => $arg) { |
|
| 2864 | if ((is_bool($arg)) && |
|
| 2865 | (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { |
|
| 2866 | } else { |
|
| 2867 | // Is it a numeric value? |
|
| 2868 | if ((is_numeric($arg)) && (!is_string($arg))) { |
|
| 2869 | $summer += pow((($arg - $mean) / $stdDev),3) ; |
|
| 2870 | ++$count; |
|
| 2871 | } |
|
| 2872 | } |
|
| 2873 | } |
|
| 2874 | ||
| 2875 | // Return |
|
| 2876 | if ($count > 2) { |
|