static int computeChebyshev ( IntTuple t0 , IntTuple t1 ) { Utils . checkForEqualSize ( t0 , t1 ) ; int max = 0 ; for ( int i = 0 ; i < t0 . getSize ( ) ; i ++ ) { int d = t0 . get ( i ) - t1 . get ( i ) ; max = Math . max ( max , Math . abs ( d ) ) ; } return max ; }
Computes the Chebyshev distance between the given tuples