Test Setup Failed
Pull Request — master (#348)
by Pol
02:28
created
src/Clustering/KMeans/Space.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @param object $point
62
+     * @param Point $point
63 63
      * @param mixed  $data
64 64
      */
65 65
     public function attach($point, $data = null): void
Please login to merge, or discard this patch.
src/Math/Distance/Distance.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $distance = 0;
34 34
 
35 35
         foreach ($this->deltas($a, $b) as $delta) {
36
-          $distance += $delta ** $this->norm;
36
+            $distance += $delta ** $this->norm;
37 37
         }
38 38
 
39 39
         return $distance ** (1 / $this->norm);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         for ($i = 0; $i < $count; $i++)
56 56
         {
57
-          $deltas[] = abs($a[$i] - $b[$i]);
57
+            $deltas[] = abs($a[$i] - $b[$i]);
58 58
         }
59 59
 
60 60
         return $deltas;
Please login to merge, or discard this patch.