Completed
Push — develop ( ddddd7...9507d5 )
by Arkadiusz
02:42
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/Math/Matrix.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @param $column
94
+     * @param integer $column
95 95
      *
96 96
      * @return array
97 97
      *
Please login to merge, or discard this patch.
src/Phpml/Clustering/KMeans/Cluster.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @return mixed
131
+     * @return integer
132 132
      */
133 133
     public function count()
134 134
     {
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.
src/Phpml/Regression/SVR.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Phpml/FeatureExtraction/TokenCountVectorizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.