Class LexicographicDoubleTupleComparator

  • All Implemented Interfaces:
    java.util.Comparator<double[]>

    public class LexicographicDoubleTupleComparator
    extends java.lang.Object
    implements java.util.Comparator<double[]>
    Compares two double vectors according to the lexicographic ordering.
    Author:
    Anna Gessler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static double PRECISION
      Precision for comparing values.
    • Method Summary

      Modifier and Type Method Description
      int compare​(double[] o1, double[] o2)  
      • 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 Detail

      • PRECISION

        public static final double PRECISION
        Precision for comparing values.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LexicographicDoubleTupleComparator

        public LexicographicDoubleTupleComparator()
    • Method Detail

      • compare

        public int compare​(double[] o1,
                           double[] o2)
        Specified by:
        compare in interface java.util.Comparator<double[]>