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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Field Details- 
PRECISIONpublic static final double PRECISIONPrecision for comparing values.- See Also:
 
 
- 
- 
Constructor Details- 
LexicographicDoubleTupleComparatorpublic LexicographicDoubleTupleComparator()Default Constructor
 
- 
- 
Method Details- 
comparepublic int compare(double[] o1, double[] o2) - Specified by:
- comparein interface- Comparator<double[]>
 
 
-