Class ProductDistanceComparator
java.lang.Object
eu.daproject.evl.comparators.ProductDistanceComparator
Class providing a comparator for the product distance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(int[] d1, int[] d2) Compares the tuples with a product distance.
-
Constructor Details
-
ProductDistanceComparator
public ProductDistanceComparator()
-
-
Method Details
-
compare
public static int compare(int[] d1, int[] d2) Compares the tuples with a product distance.- Parameters:
d1
- the first tuple of integersd2
- the second tuple of integers- Returns:
- -1 if d1 is less than d2, 1 if d1 is greater than d2, 0 otherwise
-