T
- the type of points that can be clusteredCluster
instead@Deprecated
public class Cluster<T extends Clusterable<T>>
extends java.lang.Object
implements java.io.Serializable
Clusterable
points.Modifier and Type | Field and Description |
---|---|
private T |
center
Deprecated.
Center of the cluster.
|
private java.util.List<T> |
points
Deprecated.
The points contained in this cluster.
|
private static long |
serialVersionUID
Deprecated.
Serializable version identifier.
|
Constructor and Description |
---|
Cluster(T center)
Deprecated.
Build a cluster centered at a specified point.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(T point)
Deprecated.
Add a point to this cluster.
|
T |
getCenter()
Deprecated.
Get the point chosen to be the center of this cluster.
|
java.util.List<T> |
getPoints()
Deprecated.
Get the points contained in the cluster.
|
private static final long serialVersionUID
private final java.util.List<T extends Clusterable<T>> points
private final T extends Clusterable<T> center
public Cluster(T center)
center
- the point which is to be the center of this clusterpublic void addPoint(T point)
point
- point to addpublic java.util.List<T> getPoints()
public T getCenter()