|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.ml.clustering.Cluster<T>
org.apache.commons.math3.ml.clustering.CentroidCluster<T>
T - the type of points that can be clusteredpublic class CentroidCluster<T extends Clusterable>
A Cluster used by centroid-based clustering algorithms.
Defines additionally a cluster center which may not necessarily be a member of the original data set.
| Field Summary | |
|---|---|
private Clusterable |
center
Center of the cluster. |
private static long |
serialVersionUID
Serializable version identifier. |
| Constructor Summary | |
|---|---|
CentroidCluster(Clusterable center)
Build a cluster centered at a specified point. |
|
| Method Summary | |
|---|---|
Clusterable |
getCenter()
Get the point chosen to be the center of this cluster. |
| Methods inherited from class org.apache.commons.math3.ml.clustering.Cluster |
|---|
addPoint, getPoints |
| 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 Clusterable center
| Constructor Detail |
|---|
public CentroidCluster(Clusterable center)
center - the point which is to be the center of this cluster| Method Detail |
|---|
public Clusterable getCenter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||