All Superinterfaces:
Serializable
All Known Implementing Classes:
JaccardDistancesMeasure

public interface DistanceMeasure extends Serializable
A distance measure interface for calculating the similarity or distance between two sets of values. Implementations of this interface provide custom methods to compute the distance between two sets. The distance measure is used in clustering and similarity calculations for various data points.
  • Method Details

    • computeBalancedDistance

      double computeBalancedDistance(@NotNull @NotNull Set<String> valueA, @NotNull @NotNull Set<String> valueB)
      Computes the distance or similarity between two sets of values.
      Parameters:
      valueA - The first set of values.
      valueB - The second set of values.
      Returns:
      The computed distance or similarity between the sets.
    • computeMultiValueAttributes

      double computeMultiValueAttributes(@NotNull @NotNull Set<String> valueA, @NotNull @NotNull Set<String> valueB)
    • computeRuleDistance

      double computeRuleDistance(@NotNull @NotNull ExtensionProperties valueA, @NotNull @NotNull ExtensionProperties valueB, @NotNull @NotNull Set<ClusterExplanation> explanation)
    • computeSimpleDistance

      double computeSimpleDistance(@NotNull @NotNull Set<String> valueA, @NotNull @NotNull Set<String> valueB)