Completed
Push — develop ( 56114d...5c67cf )
by Arkadiusz
03:08
created
src/Phpml/Math/Statistic/Correlation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Phpml/Clustering/KMeans/Space.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.