mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-28 19:19:27 +00:00
a2bb825bc5
* Extract Normal and Standard Normal Distributions from the Statistical Class * Extract ZTest from the Statistical Class, and move it to the Standard Normal Distribution class Additional unit tests for NORMINV() * Extract LogNormal distribution functions from Statistical
26 lines
625 B
PHP
26 lines
625 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class NormInvTest extends TestCase
|
|
{
|
|
/**
|
|
* @dataProvider providerNORMINV
|
|
*
|
|
* @param mixed $expectedResult
|
|
*/
|
|
public function testNORMINV($expectedResult, ...$args): void
|
|
{
|
|
$result = Statistical::NORMINV(...$args);
|
|
self::assertEqualsWithDelta($expectedResult, $result, 1E-8);
|
|
}
|
|
|
|
public function providerNORMINV()
|
|
{
|
|
return require 'tests/data/Calculation/Statistical/NORMINV.php';
|
|
}
|
|
}
|