|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of point that can be clusteredpublic interface Clusterable<T>
Interface for points that can be clustered together.
| Method Summary | |
|---|---|
T |
centroidOf(Collection<T> p)
Returns the centroid of the given Collection of points. |
double |
distanceFrom(T p)
Returns the distance from the given point. |
| Method Detail |
|---|
double distanceFrom(T p)
p - the point to compute the distance from
T centroidOf(Collection<T> p)
p - the Collection of points to compute the centroid of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||