ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Fisher.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
8
class
Fisher
9
{
21
public
static
function
distribution
($value)
22
{
23
$value =
Functions::flattenSingleValue
($value);
24
25
try
{
26
DistributionValidations::validateFloat
($value);
27
}
catch
(
Exception
$e) {
28
return
$e->getMessage();
29
}
30
31
if
(($value <= -1) || ($value >= 1)) {
32
return
Functions::NAN
();
33
}
34
35
return
0.5 * log((1 + $value) / (1 - $value));
36
}
37
49
public
static
function
inverse
($probability)
50
{
51
$probability =
Functions::flattenSingleValue
($probability);
52
53
try
{
54
DistributionValidations::validateFloat
($probability);
55
}
catch
(
Exception
$e) {
56
return
$e->getMessage();
57
}
58
59
return
(exp(2 * $probability) - 1) / (exp(2 * $probability) + 1);
60
}
61
}
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Fisher\distribution
static distribution($value)
FISHER.
Definition:
Fisher.php:21
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Fisher
Definition:
Fisher.php:8
PhpOffice\PhpSpreadsheet\Calculation\Functions\NAN
static NAN()
NaN.
Definition:
Functions.php:181
PhpOffice\PhpSpreadsheet\Calculation\Statistical\StatisticalValidations\validateFloat
static validateFloat($value)
Definition:
StatisticalValidations.php:13
Exception
Functions
php
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\Fisher\inverse
static inverse($probability)
FISHERINV.
Definition:
Fisher.php:49
PhpOffice\PhpSpreadsheet\Calculation\Functions\flattenSingleValue
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
Definition:
Functions.php:649
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions
Definition:
Beta.php:3
Exception
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
Statistical
Distributions
Fisher.php
Generated on Thu Jan 30 2025 19:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)