@@ -29,7 +29,7 @@ |
||
29 | 29 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
30 | 30 | * with the same dimensions |
31 | 31 | */ |
32 | - public static function distribution($value, $mean, $cumulative): array|string|float |
|
32 | + public static function distribution($value, $mean, $cumulative): array | string | float |
|
33 | 33 | { |
34 | 34 | if (is_array($value) || is_array($mean) || is_array($cumulative)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $cumulative); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
32 | 32 | * with the same dimensions |
33 | 33 | */ |
34 | - public static function distribution($value, $u, $v, $cumulative): array|string|float |
|
34 | + public static function distribution($value, $u, $v, $cumulative): array | string | float |
|
35 | 35 | { |
36 | 36 | if (is_array($value) || is_array($u) || is_array($v) || is_array($cumulative)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $u, $v, $cumulative); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
38 | 38 | * with the same dimensions |
39 | 39 | */ |
40 | - public static function distribution($value, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array|string|float |
|
40 | + public static function distribution($value, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array | string | float |
|
41 | 41 | { |
42 | 42 | if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) { |
43 | 43 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $rMin, $rMax); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
92 | 92 | * with the same dimensions |
93 | 93 | */ |
94 | - public static function inverse($probability, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array|string|float |
|
94 | + public static function inverse($probability, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array | string | float |
|
95 | 95 | { |
96 | 96 | if (is_array($probability) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) { |
97 | 97 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $alpha, $beta, $rMin, $rMax); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return self::calculateInverse($probability, $alpha, $beta, $rMin, $rMax); |
123 | 123 | } |
124 | 124 | |
125 | - private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string|float |
|
125 | + private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string | float |
|
126 | 126 | { |
127 | 127 | $a = 0; |
128 | 128 | $b = 2; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
31 | 31 | * with the same dimensions |
32 | 32 | */ |
33 | - public static function distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber): array|string|float |
|
33 | + public static function distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber): array | string | float |
|
34 | 34 | { |
35 | 35 | if ( |
36 | 36 | is_array($sampleSuccesses) || is_array($sampleNumber) || |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** @return float|string */ |
21 | - public function execute(float $probability): string|int|float |
|
21 | + public function execute(float $probability): string | int | float |
|
22 | 22 | { |
23 | 23 | $xLo = 100; |
24 | 24 | $xHi = 0; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
30 | 30 | * with the same dimensions |
31 | 31 | */ |
32 | - public static function distribution($value, $alpha, $beta, $cumulative): array|string|float |
|
32 | + public static function distribution($value, $alpha, $beta, $cumulative): array | string | float |
|
33 | 33 | { |
34 | 34 | if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($cumulative)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $cumulative); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
25 | 25 | * with the same dimensions |
26 | 26 | */ |
27 | - public static function distribution($value): array|string|float |
|
27 | + public static function distribution($value): array | string | float |
|
28 | 28 | { |
29 | 29 | if (is_array($value)) { |
30 | 30 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
58 | 58 | * with the same dimensions |
59 | 59 | */ |
60 | - public static function inverse($probability): array|string|float |
|
60 | + public static function inverse($probability): array | string | float |
|
61 | 61 | { |
62 | 62 | if (is_array($probability)) { |
63 | 63 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $probability); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * @param mixed $rMin |
126 | 126 | * @param mixed $rMax |
127 | 127 | */ |
128 | - public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string|float|array |
|
128 | + public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string | float | array |
|
129 | 129 | { |
130 | 130 | return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax); |
131 | 131 | } |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | * |
538 | 538 | * @return array|float|string The result, or a string containing an error |
539 | 539 | */ |
540 | - public static function GAMMAFunction($value): string|float|array |
|
540 | + public static function GAMMAFunction($value): string | float | array |
|
541 | 541 | { |
542 | 542 | return Statistical\Distributions\Gamma::gamma($value); |
543 | 543 | } |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * |
595 | 595 | * @param float $value |
596 | 596 | */ |
597 | - public static function GAMMALN($value): string|float|array |
|
597 | + public static function GAMMALN($value): string | float | array |
|
598 | 598 | { |
599 | 599 | return Statistical\Distributions\Gamma::ln($value); |
600 | 600 | } |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | * |
791 | 791 | * @return array|string The result, or a string containing an error |
792 | 792 | */ |
793 | - public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
793 | + public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
794 | 794 | { |
795 | 795 | return Trends::LINEST($yValues, $xValues, $const, $stats); |
796 | 796 | } |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | * |
813 | 813 | * @return array|string The result, or a string containing an error |
814 | 814 | */ |
815 | - public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
815 | + public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
816 | 816 | { |
817 | 817 | return Trends::LOGEST($yValues, $xValues, $const, $stats); |
818 | 818 | } |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | * accuracy if I can get my head round the mathematics |
837 | 837 | * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ |
838 | 838 | */ |
839 | - public static function LOGINV($probability, $mean, $stdDev): string|float|array |
|
839 | + public static function LOGINV($probability, $mean, $stdDev): string | float | array |
|
840 | 840 | { |
841 | 841 | return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev); |
842 | 842 | } |
@@ -1219,7 +1219,7 @@ discard block |
||
1219 | 1219 | * |
1220 | 1220 | * @return float|string (string if result is an error) |
1221 | 1221 | */ |
1222 | - public static function PERCENTRANK($valueSet, $value, $significance = 3): string|float |
|
1222 | + public static function PERCENTRANK($valueSet, $value, $significance = 3): string | float |
|
1223 | 1223 | { |
1224 | 1224 | return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance); |
1225 | 1225 | } |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * If an array of values is passed as an argument, then the returned result will also be an array |
117 | 117 | * with the same dimensions |
118 | 118 | */ |
119 | - public static function NOT($logical = false): array|bool|string |
|
119 | + public static function NOT($logical = false): array | bool | string |
|
120 | 120 | { |
121 | 121 | if (is_array($logical)) { |
122 | 122 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical); |