Class LexicographicDoubleTupleComparator
java.lang.Object
org.tweetyproject.arg.rankings.util.LexicographicDoubleTupleComparator
- All Implemented Interfaces:
Comparator<double[]>
This comparator compares two vectors of double values according to the lexicographic ordering.
- Author:
- Anna Gessler
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
PRECISION
public static final double PRECISIONPrecision for comparing values.- See Also:
-
-
Constructor Details
-
LexicographicDoubleTupleComparator
public LexicographicDoubleTupleComparator()Default Constructor
-
-
Method Details
-
compare
public int compare(double[] o1, double[] o2) - Specified by:
compare
in interfaceComparator<double[]>
-