E - the type of objects between which proximity is definedpublic interface Proximity<E>
Proximity interface provides a general method for
defining closeness between two objects. Proximity is a similarity
measure, with two objects having higher proximity being more
similar to one another. It provides a single method proximity(Object,Object) returning the proximity between two
objects. The closer two objects are, the higher their proximity
value.
Proximity runs in the other direction from distance. With
distance, the closer two objects are, the lower their distance
value. Many classes implement both Proximity and
Distance, with one method defined in terms of the other.
For instance, negation converts a distance into a proximity.
| Modifier and Type | Method and Description |
|---|---|
double |
proximity(E e1,
E e2)
Returns the distance between the specified pair of objects.
|
Copyright © 2019 Alias-i, Inc.. All rights reserved.