E- the type of objects between which proximity is defined
public interface Proximity<E>
Proximityinterface 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
Distance, with one method defined in terms of the other.
For instance, negation converts a distance into a proximity.