(x, y)
return result
r"""Chebyshev or l-infinity distance.

    ..math::
        D(x, y) = \max_i |x_i - y_i|
r"""Chebyshev or l-infinity distance.
r Chebyshev or l - infinity distance .
def chebyshev(x, y):
    r"""Chebyshev or l-infinity distance.

    ..math::
        D(x, y) = \max_i |x_i - y_i|
    """
    result = 0.0
    for i in range(x.shape[0]):
        result = max(result, np.abs(x[i] - y[i]))

    return result
def chebyshev ( x , y ) : result = 0.0 for i in range ( x . shape [ 0 ] ) : result = max ( result , np . abs ( x [ i ] - y [ i ] ) ) return result