T
- the type of points that can be clusteredpublic class Cluster<T extends Clusterable<T>> extends Object implements Serializable
Clusterable
points.Constructor and Description |
---|
Cluster(T centerIn)
Build a cluster centered at a specified point.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(T point)
Add a point to this cluster.
|
T |
getCenter()
Get the point chosen to be the center of this cluster.
|
List<T> |
getPoints()
Get the points contained in the cluster.
|
public Cluster(T centerIn)
centerIn
- the point which is to be the center of this clusterpublic void addPoint(T point)
point
- point to addpublic List<T> getPoints()
public T getCenter()
Copyright © 2021 CNES. All rights reserved.