|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.stat.clustering.Cluster<T>
T
- the type of points that can be clusteredpublic class Cluster<T extends Clusterable<T>>
Cluster holding a set of Clusterable
points.
Field Summary | |
---|---|
private T |
center
Center of the cluster. |
private List<T> |
points
The points contained in this cluster. |
private static long |
serialVersionUID
Serializable version identifier. |
Constructor Summary | |
---|---|
Cluster(T center)
Build a cluster centered at a specified point. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final List<T extends Clusterable<T>> points
private final T extends Clusterable<T> center
Constructor Detail |
---|
public Cluster(T center)
center
- the point which is to be the center of this clusterMethod Detail |
---|
public void addPoint(T point)
point
- point to addpublic List<T> getPoints()
public T getCenter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |