| 1 | <?php |
||
| 13 | abstract class Distance implements DistanceInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var float|int |
||
| 17 | */ |
||
| 18 | public $norm; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Distance constructor. |
||
| 22 | */ |
||
| 23 | public function __construct(float $norm = 3.0) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @throws InvalidArgumentException |
||
| 30 | */ |
||
| 31 | public function distance(array $a, array $b): float |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @throws InvalidArgumentException |
||
| 49 | */ |
||
| 50 | protected function deltas(array $a, array $b): array |
||
| 64 | } |
||
| 65 |