@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @param $column |
|
94 | + * @param integer $column |
|
95 | 95 | * |
96 | 96 | * @return array |
97 | 97 | * |
@@ -128,7 +128,7 @@ |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @return mixed |
|
131 | + * @return integer |
|
132 | 132 | */ |
133 | 133 | public function count() |
134 | 134 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | protected $dimension; |
18 | 18 | |
19 | 19 | /** |
20 | - * @param $dimension |
|
20 | + * @param integer $dimension |
|
21 | 21 | */ |
22 | 22 | public function __construct($dimension) |
23 | 23 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param object $point |
|
68 | + * @param Point $point |
|
69 | 69 | * @param null $data |
70 | 70 | */ |
71 | 71 | public function attach($point, $data = null) |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param int $clustersNumber |
129 | 129 | * @param int $initMethod |
130 | 130 | * |
131 | - * @return array|Cluster[] |
|
131 | + * @return Cluster[] |
|
132 | 132 | */ |
133 | 133 | public function cluster(int $clustersNumber, int $initMethod = KMeans::INIT_RANDOM) |
134 | 134 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * @param $clustersNumber |
145 | 145 | * @param $initMethod |
146 | 146 | * |
147 | - * @return array|Cluster[] |
|
147 | + * @return Cluster[] |
|
148 | 148 | */ |
149 | 149 | protected function initializeClusters(int $clustersNumber, int $initMethod) |
150 | 150 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
192 | - * @param $clusters |
|
192 | + * @param Cluster[] $clusters |
|
193 | 193 | * |
194 | 194 | * @return bool |
195 | 195 | */ |