T - The type of the elements for which the distance is computedpublic interface DistanceFunction<T> extends java.util.function.ToDoubleBiFunction<T,T>
ToDoubleBiFunction interface. Users of this interface
should generally prefer to treat it as a ToDoubleBiFunction,
unless specific knowledge about it being a distance function is desired.| Modifier and Type | Method and Description |
|---|---|
default double |
applyAsDouble(T t0,
T t1) |
double |
distance(T t0,
T t1)
Computes the distance between the given objects
|
double distance(T t0, T t1)
t0 - The first objectt1 - The second objectdefault double applyAsDouble(T t0, T t1)
applyAsDouble in interface java.util.function.ToDoubleBiFunction<T,T>Copyright © 2015. All Rights Reserved.