 ba2b74c222
			
		
	
	
		ba2b74c222
		
			
		
	
	
	
	
		
			
			* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts. * Further statistical tests * Additional BINOMDIST tests Extract boolean and string checking for Average and Count functions into separate methods * Appease the great god PHPCS * Yet more appeasement of the great god PHPCS * Beginning to get really cheesed off with PHPCS, pulling me up over full stops in comments... I want to see this completed before going to bed; but it's nearly half past one in the morning, and phpcs has been pulling me up over trivialities for the past f***ing hour * And a spurious line * Further work on statistical tests
		
			
				
	
	
		
			46 lines
		
	
	
		
			895 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			895 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         1.020408163265,
 | |
|         [4, 5, 6, 7, 5, 4, 3],
 | |
|     ],
 | |
|     [
 | |
|         1.65,
 | |
|         [10.5, 7.2],
 | |
|     ],
 | |
|     [
 | |
|         17.2,
 | |
|         [7.2, 5.4, 45],
 | |
|     ],
 | |
|     [
 | |
|         61.504,
 | |
|         [10.5, 7.2, 200, 5.4, 8.1],
 | |
|     ],
 | |
|     [
 | |
|         1.825,
 | |
|         [
 | |
|             // The index simulates a cell value
 | |
|             // Numbers and Booleans are both counted
 | |
|             '0.1.A' => 1,
 | |
|             '0.2.A' => '2',
 | |
|             '0.3.A' => 3.4,
 | |
|             '0.4.A' => true,
 | |
|             '0.5.A' => 5,
 | |
|             '0.6.A' => null,
 | |
|             '0.7.A' => 6.7,
 | |
|             '0.8.A' => 'STRING',
 | |
|             '0.9.A' => ''
 | |
|         ],
 | |
|     ],
 | |
|     [
 | |
|         1.85,
 | |
|         [1, '2', 3.4, true, 5, 6.7],
 | |
|     ],
 | |
|     [
 | |
|         // When non-numeric strings are passed directly, then a #VALUE! error is raised
 | |
|         '#VALUE!',
 | |
|         [1, '2', 3.4, true, 5, null, 6.7, 'STRING', ''],
 | |
|     ],
 | |
| ];
 |