Interface PairMetricFunction<U>
- Type Parameters:
U
- type of the users.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface PairMetricFunction<U>
Functional interface for obtaining pair metrics.
-
Method Summary
Modifier and Type Method Description PairMetric<U>
apply(DistanceCalculator<U> calc)
Obtains a pair metric.
-
Method Details
-
apply
Obtains a pair metric.- Parameters:
calc
- distance calculator.- Returns:
- the pair metric.
-