Source

Diagonal#

The Diagonal (sometimes called Chebyshev) distance is a measure that constrains movement to horizontal, vertical, and diagonal movement from a point. An example of a game that uses diagonal movement is a chess board.

Parameters#

This kernel does not have any parameters.

Example#

use Rubix\ML\Kernels\Distance\Diagonal;

$kernel = new Diagonal();