public static double euclideanSq ( TupleDesc_F64 a , TupleDesc_F64 b ) { final int N = a . value . length ; double total = 0 ; for ( int i = 0 ; i < N ; i ++ ) { double d = a . value [ i ] - b . value [ i ] ; total += d * d ; } return total ; }
Returns the Euclidean distance squared between the two descriptors .