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 Summary

    Modifier and Type
    Method
    Description
    double
    compute(Set<String> valueA, Set<String> valueB)
    Computes the distance or similarity between two sets of values.
  • Method Details

    • compute

      double compute(Set<String> valueA, 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.