Package net.sf.tweety.arg.rankings.util
Class LexicographicDoubleTupleComparator
- java.lang.Object
-
- net.sf.tweety.arg.rankings.util.LexicographicDoubleTupleComparator
-
- All Implemented Interfaces:
Comparator<double[]>
public class LexicographicDoubleTupleComparator extends Object implements Comparator<double[]>
Compares two double vectors according to the lexicographic ordering.- Author:
- Anna Gessler
-
-
Field Summary
Fields Modifier and Type Field Description static doublePRECISIONPrecision for comparing values.
-
Constructor Summary
Constructors Constructor Description LexicographicDoubleTupleComparator()
-
Method Summary
Modifier and Type Method Description intcompare(double[] o1, double[] o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
PRECISION
public static final double PRECISION
Precision for comparing values.- See Also:
- Constant Field Values
-
-
Method Detail
-
compare
public int compare(double[] o1, double[] o2)- Specified by:
comparein interfaceComparator<double[]>
-
-