|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - the type of objects between which proximity is definedpublic interface Proximity<E>
The 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.
| Method Summary | |
|---|---|
double |
proximity(E e1,
E e2)
Returns the distance between the specified pair of objects. |
| Method Detail |
|---|
double proximity(E e1,
E e2)
e1 - First object.e2 - Second object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||