Interface DistanceMeasure
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JaccardDistancesMeasure
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 TypeMethodDescriptiondouble
compute
(@NotNull ExtensionProperties valueA, @NotNull ExtensionProperties valueB, @NotNull Set<ClusterExplanation> explanation) double
Computes the distance or similarity between two sets of values.double
computeMultiValueAttributes
(@NotNull Set<String> valueA, @NotNull Set<String> valueB)
-
Method Details
-
compute
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
-
compute
double compute(@NotNull @NotNull ExtensionProperties valueA, @NotNull @NotNull ExtensionProperties valueB, @NotNull @NotNull Set<ClusterExplanation> explanation)
-