
public final class DistanceUtil extends Object
| Constructor and Description |
|---|
DistanceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDoubleDistanceFunction(DistanceFunction<?,?> df)
Test whether a distance function is double-valued.
|
static boolean |
isDoubleDistanceFunction(DistanceQuery<?,?> df)
Test whether a distance query is double-valued.
|
static <D extends Distance<D>> |
max(D d1,
D d2)
Returns the maximum of the given Distances or the first, if none is greater
than the other one.
|
static <D extends Distance<D>> |
min(D d1,
D d2)
Returns the minimum of the given Distances or the first, if none is less
than the other one.
|
public static <D extends Distance<D>> D max(D d1, D d2)
D - distance typed1 - first Distanced2 - second Distancepublic static <D extends Distance<D>> D min(D d1, D d2)
D - distance typed1 - first Distanced2 - second Distancepublic static boolean isDoubleDistanceFunction(DistanceFunction<?,?> df)
df - Distance functionpublic static boolean isDoubleDistanceFunction(DistanceQuery<?,?> df)
df - Distance function