Files
PhpSpreadsheet/tests/data/Calculation/Statistical/GAMMADIST.php
T
Mark Baker f51c19c125 First steps toward refactoring Excel's Statistical Distributions (#1949)
* First steps toward refactoring Statistical Distributions into smaller classes: BETA() and GAMMA() (and related functions) to start with... they all need a lot of tidying up, and more testing; but it's a start

* Add basic datatype validations to Beta and Gamma Excel function implementations
* Switch to using a trait with the validation methods to provide easier sharing between distribution classes
* Additional unit tests for Beta and Gamma functions, including unhappy path for validations

* Extract ChiSquared functions
* Additional argument validation checks with unit tests for Chi Squared functions

* Extract Fisher

* Move MEDIAN() and MODE() to the Averages class
* Extract filters for Median and Mode for common usage
2021-03-25 20:54:55 +01:00

61 lines
923 B
PHP

<?php
return [
[
0.03263913041829,
10.00001131, 9, 2, false,
],
[
0.06809400387,
10.00001131, 9, 2, true,
],
[
0.112020903828,
6, 3, 2, false,
],
[
0.576809918873,
6, 3, 2, true,
],
'Boolean as numeric' => [
0.576809918873,
6, 3, 2, 1,
],
[
'#VALUE!',
'NAN', 3, 2, true,
],
[
'#VALUE!',
6, 'NAN', 2, true,
],
[
'#VALUE!',
6, 3, 'NAN', true,
],
[
'#VALUE!',
6, 3, 2, 'NAN',
],
'Value < 0' => [
'#NUM!',
-6, 3, 2, true,
],
'A < 0' => [
'#NUM!',
6, -3, 2, true,
],
'A = 0' => [
'#NUM!',
6, 0, 2, true,
],
'B < 0' => [
'#NUM!',
6, 3, -2, true,
],
'B = 0' => [
'#NUM!',
6, 3, 0, true,
],
];