Files
PhpSpreadsheet/tests/data/Calculation/Statistical/CHIINV.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

57 lines
755 B
PHP

<?php
return [
[
8.383430828608,
0.3, 7,
],
[
6.737200771955,
0.75, 10,
],
[
18.30697345702,
0.050001, 10,
],
[
0.45493642312,
0.5, 1,
],
[
0.101531044268,
0.75, 1,
],
[
4.605170185988,
0.1, 2,
],
[
0.446287102628,
0.8, 2,
],
[
4.108344935632,
0.25, 3,
],
[
'#VALUE!',
'NaN', 3,
],
[
'#VALUE!',
0.25, 'NaN',
],
'Probability < 0' => [
'#NUM!',
-0.1, 3,
],
'Probability > 1' => [
'#NUM!',
1.1, 3,
],
'Freedom > 1' => [
'#NUM!',
0.1, 0.5,
],
];