T - the type of points that can be clusteredpublic class CentroidCluster<T extends Clusterable> extends Cluster<T>
Defines additionally a cluster center which may not necessarily be a member of the original data set.
| Modifier and Type | Field and Description |
|---|---|
private Clusterable |
center
Center of the cluster.
|
private static long |
serialVersionUID
Serializable version identifier.
|
| Constructor and Description |
|---|
CentroidCluster(Clusterable center)
Build a cluster centered at a specified point.
|
| Modifier and Type | Method and Description |
|---|---|
Clusterable |
getCenter()
Get the point chosen to be the center of this cluster.
|
private static final long serialVersionUID
private final Clusterable center
public CentroidCluster(Clusterable center)
center - the point which is to be the center of this clusterpublic Clusterable getCenter()
Copyright (c) 2003-2015 Apache Software Foundation