@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | return array_sum( |
| 42 | 42 | array_map( |
| 43 | - function ($a) use ($norm) { |
|
| 43 | + function($a) use ($norm) { |
|
| 44 | 44 | return $a**$norm; |
| 45 | 45 | }, |
| 46 | 46 | $this->deltas($a, $b) |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return array_map( |
| 66 | - function ($a, $b) { |
|
| 66 | + function($a, $b) { |
|
| 67 | 67 | return abs($a - $b); |
| 68 | 68 | }, |
| 69 | 69 | $a, |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * |
| 30 | 30 | * @throws \Phpml\Exception\InvalidArgumentException |
| 31 | 31 | */ |
| 32 | - public function sqDistance(array $a, array $b): float |
|
| 32 | + public function sqDistance(array $a, array $b): float |
|
| 33 | 33 | { |
| 34 | 34 | return $this->distance($a, $b) ** 2; |
| 35 | 35 | } |