org.apache.commons.math.stat.clustering
T
- the type of points that can be clusteredpublic class Cluster<T extends Clusterable<T>> extends Object implements Serializable
Clusterable
points.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Cluster(T center)
Build a cluster centered at a specified point.
|
private static final long serialVersionUID
private final 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 List<T> getPoints()
public T getCenter()
Copyright (c) 2003-2013 Apache Software Foundation