T
- the type of point that can be clusteredpublic interface Clusterable<T>
Modifier and Type | Method and Description |
---|---|
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.
|
double distanceFrom(T p)
p
- the point to compute the distance fromT centroidOf(Collection<T> p)
p
- the Collection of points to compute the centroid ofCopyright © 2020 CNES. All rights reserved.