- Type Parameters:
T
- type of things to compare
- All Superinterfaces:
- Serializable, ToDoubleBiFunction<T,T>
- All Known Implementing Classes:
- EuclideanDistanceFn
- 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 DistanceFn<T>
extends Serializable, ToDoubleBiFunction<T,T>
A function that returns a distance between things.