Chebyshev.php 277 Bytes
Newer Older
1
2
<?php

Arkadiusz Kondas's avatar
Arkadiusz Kondas committed
3
declare(strict_types=1);
4

Arkadiusz Kondas's avatar
Arkadiusz Kondas committed
5
namespace Phpml\Math\Distance;
6

7
8
9
10
/**
 * Class Chebyshev
 */
class Chebyshev extends Distance
11
12
{
    /**
13
     * {@inheritdoc}
14
     */
15
    public function distance(array $a, array $b): float
16
    {
17
        return max($this->deltas($a, $b));
18
19
    }
}