mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-25 01:31:26 +00:00
17af13281b
* Extract a few more Distribution functions from Statistical; this time EXPONDIST() and HYPGEOMDIST() * Extract the F Distribution (although only F.DIST() is implemented so far * Updae docblocks * PHPCS
26 lines
622 B
PHP
26 lines
622 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class FDistTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider providerFDIST
|
|
*
|
|
* @param mixed $expectedResult
|
|
*/
|
|
public function testFDIST($expectedResult, ...$args): void
|
|
{
|
|
$result = Statistical::FDIST2(...$args);
|
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
|
|
}
|
|
|
|
public function providerFDIST(): array
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/FDIST.php';
|
|
}
|
|
}
|