java.lang.Object
java.lang.Enum<SameConfidenceRanking>
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.metric.ranking.SameConfidenceRanking
All Implemented Interfaces:
Serializable, Comparable<SameConfidenceRanking>, java.lang.constant.Constable

public enum SameConfidenceRanking extends Enum<SameConfidenceRanking>
Enum for different sorting options in case correspondences have same confidence.
See Also:
  • Enum Constant Details

    • ALPHABETICALLY

      public static final SameConfidenceRanking ALPHABETICALLY
      Sorts correspondences with same confidence in alphabetical order of source and target
    • RANDOM

      public static final SameConfidenceRanking RANDOM
      Sorts correspondences with same confidence randomly.
    • RANDOM_WITH_SEED

      public static final SameConfidenceRanking RANDOM_WITH_SEED
      Sorts correspondences with same confidence randomly but a seed is set and thus multiple runs, returns same results.
    • TOP

      public static final SameConfidenceRanking TOP
      Sorts true positive correspondences at the top of each confidence class.
    • BOTTOM

      public static final SameConfidenceRanking BOTTOM
      Sorts true positive correspondences at the bottom of each confidence class.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • RND

      private static Random RND
  • Constructor Details

    • SameConfidenceRanking

      private SameConfidenceRanking()
  • Method Details

    • values

      public static SameConfidenceRanking[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SameConfidenceRanking valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • sortAlignment

      public List<Correspondence> sortAlignment(Iterable<Correspondence> systemAlignment, Collection<Correspondence> referenceAlignment)
      Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. The reference alignment (second parameter) can be null, in case TOP and BOTTOM is not used.
      Parameters:
      systemAlignment - the alignment to be sorted.
      referenceAlignment - the reference alignment which is only used for TOP and BOTTOM.
      Returns:
      a sorted alignment
    • sortAlignment

      public List<Correspondence> sortAlignment(Iterable<Correspondence> systemAlignment)
      Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. Due to the fact that reference alignment is not given, TOP and BOTTOM should be not used.
      Parameters:
      systemAlignment - the alignment to be sorted.
      Returns:
      a sorted alignment
    • sortAlignment

      public List<Correspondence> sortAlignment(Alignment systemAlignment, Alignment referenceAlignment)
      Sorts the system alignment and returns a list of correspondences. The important part is when multiple correspondences have the same confidence. In this situation the ranking is determined by the SameConfidenceRanking. The reference alignment (second parameter) can be null, in case TOP and BOTTOM is not used.
      Parameters:
      systemAlignment - the alignment to be sorted.
      referenceAlignment - the reference alignment which is only used for TOP and BOTTOM.
      Returns:
      a sorted alignment
    • setSeed

      public static void setSeed(long seed)
      Sets the seed value for the RANDOM_WITH_SEED enum.
      Parameters:
      seed - the seed value to use for generating the randomness.