Merge pull request #349 from luxbet/poisson_fix
Allow value of 0 to be passed into POISSON formula
This commit is contained in:
commit
afb0101a32
|
@ -2737,7 +2737,7 @@ class PHPExcel_Calculation_Statistical {
|
||||||
$mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean);
|
$mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean);
|
||||||
|
|
||||||
if ((is_numeric($value)) && (is_numeric($mean))) {
|
if ((is_numeric($value)) && (is_numeric($mean))) {
|
||||||
if (($value <= 0) || ($mean <= 0)) {
|
if (($value < 0) || ($mean <= 0)) {
|
||||||
return PHPExcel_Calculation_Functions::NaN();
|
return PHPExcel_Calculation_Functions::NaN();
|
||||||
}
|
}
|
||||||
if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
|
if ((is_numeric($cumulative)) || (is_bool($cumulative))) {
|
||||||
|
|
Loading…
Reference in New Issue