@@ -30,7 +30,7 @@ |
||
30 | 30 | $a2 = 0; |
31 | 31 | $b2 = 0; |
32 | 32 | |
33 | - for ($i = 0;$i < $count;++$i) { |
|
33 | + for ($i = 0; $i < $count; ++$i) { |
|
34 | 34 | $a = $x[$i] - $meanX; |
35 | 35 | $b = $y[$i] - $meanY; |
36 | 36 | $axb = $axb + ($a * $b); |
@@ -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) |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | /** |
226 | 226 | * @param int $clustersNumber |
227 | 227 | * |
228 | - * @return array |
|
228 | + * @return Cluster[] |
|
229 | 229 | */ |
230 | 230 | protected function initializeKMPPClusters(int $clustersNumber) |
231 | 231 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function __construct( |
25 | 25 | int $kernel = Kernel::RBF, int $degree = 3, float $epsilon = 0.1, float $cost = 1.0, |
26 | - float $gamma = null, float $coef0 = 0.0, float $tolerance = 0.001, |
|
26 | + float $gamma = null, float $coef0 = 0.0, float $tolerance = 0.001, |
|
27 | 27 | int $cacheSize = 100, bool $shrinking = true |
28 | 28 | ) { |
29 | 29 | parent::__construct(Type::EPSILON_SVR, $kernel, $cost, 0.5, $degree, $gamma, $coef0, $epsilon, $tolerance, $cacheSize, $shrinking, false); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | /** |
86 | 86 | * @param string $sample |
87 | 87 | */ |
88 | - private function transformSample(string &$sample) |
|
88 | + private function transformSample(string & $sample) |
|
89 | 89 | { |
90 | 90 | $counts = []; |
91 | 91 | $tokens = $this->tokenizer->tokenize($sample); |