public interface Centroid<O>
| Modifier and Type | Method and Description |
|---|---|
void |
add(O e)
Add an element to the centroid.
|
double |
distance(O o)
The distance between this centroid and an element.
|
void |
remove(O o)
Remove an element from the centroid.
|
void add(O e)
e - The element to add.void remove(O o)
o - The element to remove.double distance(O o)
o - The element.