@@ -85,6 +85,9 @@ |
||
85 | 85 | return $this->PDFByValue($value); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param NumberInterface $value |
|
90 | + */ |
|
88 | 91 | public function PDFByValue($value) |
89 | 92 | { |
90 | 93 | $value = Numbers::makeOrDont($this->numberType, $value); |
@@ -88,6 +88,9 @@ |
||
88 | 88 | |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param NumberInterface $p |
|
93 | + */ |
|
91 | 94 | public static function inverseNormalCDF($p, $precision = 10) |
92 | 95 | { |
93 | 96 | $pi = Numbers::makePi(); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * WARNING: This function is VERY unoptimized. Be careful of large m values. |
54 | 54 | * |
55 | 55 | * @param $m |
56 | - * @param $n |
|
56 | + * @param integer $n |
|
57 | 57 | * |
58 | 58 | * @return NumberInterface |
59 | 59 | */ |
@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | |
23 | 23 | protected $base; |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $precision |
|
27 | + */ |
|
25 | 28 | public function __construct($value, $precision = null, $base = 10) |
26 | 29 | { |
27 | 30 | $this->base = $base; |
@@ -98,7 +101,7 @@ discard block |
||
98 | 101 | * Note about precision: it uses the smaller of the two precisions (significant figures). |
99 | 102 | * |
100 | 103 | * @param $num |
101 | - * @return mixed |
|
104 | + * @return NumberInterface |
|
102 | 105 | */ |
103 | 106 | public function divide($num) |
104 | 107 | { |