mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-27 04:48:34 +00:00
f51c19c125
* 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
53 lines
665 B
PHP
53 lines
665 B
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
0.964294972685,
|
|
3, 9,
|
|
],
|
|
[
|
|
0.4837673815536,
|
|
7.5, 8,
|
|
],
|
|
[
|
|
0.050000589092,
|
|
18.307, 10,
|
|
],
|
|
[
|
|
0.479500122187,
|
|
0.5, 1,
|
|
],
|
|
[
|
|
0.113846298007,
|
|
2.5, 1,
|
|
],
|
|
[
|
|
0.778800783071,
|
|
0.5, 2,
|
|
],
|
|
[
|
|
0.918891411655,
|
|
0.5, 3,
|
|
],
|
|
[
|
|
0.046011705689,
|
|
8, 3,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'NaN', 3,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
8, 'NaN',
|
|
],
|
|
'Value < 0' => [
|
|
'#NUM!',
|
|
-8, 3,
|
|
],
|
|
'Degrees < 1' => [
|
|
'#NUM!',
|
|
8, 0,
|
|
],
|
|
];
|