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 center)
Build a cluster centered at a specified point.
|
public Cluster(T center)
center
- 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 © 2003-2012 The Apache Software Foundation. All Rights Reserved.