@@ -59,7 +59,7 @@ |
||
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 |
@@ -33,7 +33,7 @@ discard block |
||
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 |
||
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; |