ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
DistributionValidations.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions
;
4
5
use
PhpOffice\PhpSpreadsheet\Calculation\Exception
;
6
use
PhpOffice\PhpSpreadsheet\Calculation\Functions
;
7
use
PhpOffice\PhpSpreadsheet\Calculation\Statistical\StatisticalValidations
;
8
9
class
DistributionValidations
extends
StatisticalValidations
10
{
14
public
static
function
validateProbability
($probability): float
15
{
16
$probability = self::validateFloat($probability);
17
18
if
($probability < 0.0 || $probability > 1.0) {
19
throw
new
Exception
(
Functions::NAN
());
20
}
21
22
return
$probability;
23
}
24
}
PhpOffice\PhpSpreadsheet\Calculation\Statistical\StatisticalValidations
Definition:
StatisticalValidations.php:8
PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN
static NAN()
NaN.
Definition:
Functions.php:181
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\DistributionValidations
Definition:
DistributionValidations.php:9
Exception
StatisticalValidations
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\DistributionValidations\validateProbability
static validateProbability($probability)
Definition:
DistributionValidations.php:14
Functions
php
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions
Definition:
Beta.php:3
Exception
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
Statistical
Distributions
DistributionValidations.php
Generated on Thu Jan 16 2025 19:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)