def manhattan_infinity(obj1, obj2):
    """
    Manhattan measure, under L_infinity standard, used in competitive learning mode.

    d(x, w_i) = \max_{j} (x_j - w_{ij})
    """
    return max(map(lambda obj: obj[0] - obj[1], zip(obj1, obj2)))