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

81 lines
1.2 KiB
PHP

<?php
return [
[
1.862243320728,
0.52, 3, 4, 1, 3,
],
[
2.164759759129,
0.3, 7.5, 9, 1, 4,
],
[
2.164759759129,
0.3, 7.5, 9, 4, 1,
],
[
7.761240188783,
0.75, 8, 9, 5, 10,
],
[
2.0,
0.685470581055, 8, 10, 1, 3,
],
[
0.303225844664,
0.2, 4, 5, 0, 1,
],
[
'#VALUE!',
'NAN', 4, 5, 0, 1,
],
[
'#VALUE!',
0.2, 'NAN', 5, 0, 1,
],
[
'#VALUE!',
0.2, 4, 'NAN', 0, 1,
],
[
'#VALUE!',
0.2, 4, 5, 'NAN', 1,
],
[
'#VALUE!',
0.2, 4, 5, 0, 'NAN',
],
'alpha < 0' => [
'#NUM!',
0.2, -4, 5, 0, 1,
],
'alpha = 0' => [
'#NUM!',
0.2, 0, 5, 0, 1,
],
'beta < 0' => [
'#NUM!',
0.2, 4, -5, 0, 1,
],
'beta = 0' => [
'#NUM!',
0.2, 4, 0, 0, 1,
],
'Probability < 0' => [
'#NUM!',
-0.5, 4, 5, 1, 3,
],
'Probability = 0' => [
'#NUM!',
0.0, 4, 5, 1, 3,
],
'Probability > 1' => [
'#NUM!',
1.5, 4, 5, 1, 3,
],
'Min = Max' => [
'#NUM!',
1, 4, 5, 1, 1,
],
];