Class ProductDistanceComparator

java.lang.Object
eu.daproject.evl.comparators.ProductDistanceComparator

public class ProductDistanceComparator extends Object
Class providing a comparator for the 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 integers
      d2 - the second tuple of integers
      Returns:
      -1 if d1 is less than d2, 1 if d1 is greater than d2, 0 otherwise