 57213deb64
			
		
	
	
		57213deb64
		
			
		
	
	
	
	
		
			
			* `GAUSS()` and `GAMMA()`, `NORM.S.DIST()`, `LOGNORM.DIST()` and `F.DIST()` function implementations, and further unit tests for a number of the statistical functions Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			680 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			680 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class NormSDistTest extends TestCase
 | |
| {
 | |
|     /**
 | |
|      * @dataProvider providerNORMSDIST
 | |
|      *
 | |
|      * @param mixed $expectedResult
 | |
|      * @param mixed $testValue
 | |
|      */
 | |
|     public function testNORMSDIST($expectedResult, $testValue): void
 | |
|     {
 | |
|         $result = Statistical::NORMSDIST($testValue);
 | |
|         self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
 | |
|     }
 | |
| 
 | |
|     public function providerNORMSDIST(): array
 | |
|     {
 | |
|         return require 'tests/data/Calculation/Statistical/NORMSDIST.php';
 | |
|     }
 | |
| }
 |