Files
PhpSpreadsheet/tests/data/Calculation/Statistical/BINOMDISTRANGE.php
T
Mark Baker 029f345987 Extract Binomial Distribution functions from Statistical (#1974)
* Extract Binomial Distribution functions from Statistical
Replace the old MS algorithm for CRITBINOM() (which has now been replaced with te BINOM.INV() function) with a brute force approach - I'll look to refine it later. The MS algorithm is no longer documented, and the implementation produced erroneous results anyway

* Exract the NEGBINOMDIST() function as well; still need to add a cumulative flag to support the additional argument for the newer NEGBINOM.DIST() function
* Rationalise validation of probability arguments
2021-03-30 22:49:10 +02:00

73 lines
1.0 KiB
PHP

<?php
return [
[
0.083974967429,
60, 0.75, 48,
],
[
0.5236297934719,
60, 0.75, 45, 50,
],
[
0.0284439668205,
100, 0.5, 0, 40,
],
[
0.728746975926,
100, 0.5, 45, 55,
],
[
0.539794618694,
100, 0.5, 50, 100,
],
[
0.079589237387,
100, 0.5, 50,
],
[
'#VALUE!',
'NaN', 0.5, 50, 100,
],
[
'#VALUE!',
100, 'NaN', 50, 100,
],
[
'#VALUE!',
100, 0.5, 'NaN', 100,
],
[
'#VALUE!',
100, 0.5, 50, 'NaN',
],
[
'#NUM!',
100, -0.5, 50, 100,
],
[
'#NUM!',
100, 1.5, 50, 100,
],
[
'#NUM!',
100, 0.5, -5, 100,
],
[
'#NUM!',
10, 0.5, 50, 100,
],
[
'#NUM!',
100, 0.5, 50, -10,
],
[
'#NUM!',
100, 0.5, 50, -110,
],
[
'#NUM!',
100, 0.5, 50, 40,
],
];