Enum SetSimilarity

java.lang.Object
java.lang.Enum<SetSimilarity>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.SetSimilarity
All Implemented Interfaces:
Serializable, Comparable<SetSimilarity>, Constable

public enum SetSimilarity
extends Enum<SetSimilarity>
Different methods for set comparison like Overlap coefficient, Jaccard or Sørensen–Dice_coefficient (DSC).
  • Enum Constant Details

  • Constructor Details

  • Method Details

    • values

      public static SetSimilarity[] 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 SetSimilarity 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
    • compute

      public <E> double compute​(Set<E> x, Set<E> y)
      Compute the set comparison.
      Type Parameters:
      E - Generic type of the sets
      Parameters:
      x - set x
      y - set y
      Returns:
      set comparison value
    • compute

      public double compute​(int sizeIntersection, int sizeX, int sizeY)
      Compute the set comparison.
      Parameters:
      sizeIntersection - the number of intersection of the two sets
      sizeX - size of set x
      sizeY - size of set y
      Returns:
      set comparison value