Files
PhpSpreadsheet/tests/data/Calculation/Statistical/PERCENTRANK.php
T
Mark Baker 1c92b7611a Extract Percentile-type functions from Statistics (#1966)
* Extract Percentile-type functions from Statistics (e.g. PERCENTILE(), PERCENTRANK(), QUARTILE(), and RANK())
* Unit test for PERCENTILE() with an empty (of numbers) dataset
2021-03-29 12:59:46 +02:00

74 lines
995 B
PHP

<?php
return [
[
0.667,
[1, 2, 3, 4],
3,
],
[
0.67,
[1, 2, 3, 4],
3,
2,
],
[
0.83,
[1, 2, 3, 4],
3.5,
2,
],
[
0.758,
[7, 8, 9, 20],
12,
],
[
0.2222,
[10.5, 7.2, 200, 5.4, 8.1],
7,
4,
],
[
0.333,
[13, 12, 11, 8, 4, 3, 2, 1, 1, 1],
2,
],
[
0.556,
[13, 12, 11, 8, 4, 3, 2, 1, 1, 1],
4,
],
[
0.667,
[13, 12, 11, 8, 4, 3, 2, 1, 1, 1],
8,
],
[
0.583,
[13, 12, 11, 8, 4, 3, 2, 1, 1, 1],
5,
],
[
0.67,
[1, 'Deux', 2, 'Uno', 3, 4],
3,
2,
],
[
'#VALUE!',
['A', 'B', 'C', 'D'],
'E',
],
[
'#N/A',
['A', 'B', 'C', 'D'],
3,
],
[
'#N/A',
[1, 2, 3, 4],
5,
],
];