1 | <?php |
||
12 | class Euclidean extends Distance |
||
13 | { |
||
14 | /** |
||
15 | * Euclidean constructor. |
||
16 | */ |
||
17 | public function __construct() |
||
21 | |||
22 | /** |
||
23 | * Square of Euclidean distance |
||
24 | * |
||
25 | * @param array $a |
||
26 | * @param array $b |
||
27 | * |
||
28 | * @return float |
||
29 | * |
||
30 | * @throws \Phpml\Exception\InvalidArgumentException |
||
31 | */ |
||
32 | public function sqDistance(array $a, array $b): float |
||
36 | } |
||
37 |