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
computeBalancedDistance
(@NotNull Set<String> valueA, @NotNull Set<String> valueB) Computes the distance or similarity between two sets of values.double
computeMultiValueAttributes
(@NotNull Set<String> valueA, @NotNull Set<String> valueB) double
computeRuleDistance
(@NotNull ExtensionProperties valueA, @NotNull ExtensionProperties valueB, @NotNull Set<ClusterExplanation> explanation) double
computeSimpleDistance
(@NotNull Set<String> valueA, @NotNull Set<String> valueB)
-
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
-
computeRuleDistance
double computeRuleDistance(@NotNull @NotNull ExtensionProperties valueA, @NotNull @NotNull ExtensionProperties valueB, @NotNull @NotNull Set<ClusterExplanation> explanation) -
computeSimpleDistance
-