ClusterType - The type of cluster.public class NormalizedCentroidCluster<ClusterType> extends CentroidCluster<ClusterType>
| Modifier and Type | Field and Description |
|---|---|
protected ClusterType |
normalizedCentroid
The normalized center of the cluster.
|
centroidDEFAULT_INDEX| Constructor and Description |
|---|
NormalizedCentroidCluster()
Creates a new instance of NormalizedCentroidCluster.
|
NormalizedCentroidCluster(ClusterType centroid,
ClusterType normalizedCentroid)
Creates a new instance of NormalizedCentroidCluster.
|
NormalizedCentroidCluster(ClusterType centroid,
ClusterType normalizedCentroid,
java.util.Collection<? extends ClusterType> members)
Creates a new instance of NormalizedCentroidCluster.
|
NormalizedCentroidCluster(int index,
ClusterType centroid,
ClusterType normalizedCentroid)
Creates a new instance of NormalizedCentroidCluster.
|
NormalizedCentroidCluster(int index,
ClusterType centroid,
ClusterType normalizedCentroid,
java.util.Collection<? extends ClusterType> members)
Creates a new instance of NormalizedCentroidCluster.
|
| Modifier and Type | Method and Description |
|---|---|
ClusterType |
getNormalizedCentroid()
Gets the normalized centroid of the cluster.
|
void |
setNormalizedCentroid(ClusterType normalizedCentroid)
Sets the normalized centroid of the cluster.
|
getCentroid, setCentroidclone, getIndex, getMembers, setIndexprotected ClusterType normalizedCentroid
public NormalizedCentroidCluster()
public NormalizedCentroidCluster(ClusterType centroid, ClusterType normalizedCentroid)
centroid - The centroid of the cluster.normalizedCentroid - The normalized centroid of the cluster.public NormalizedCentroidCluster(int index,
ClusterType centroid,
ClusterType normalizedCentroid)
index - The index of the cluster.centroid - The centroid of the cluster.normalizedCentroid - The normalized centroid of the cluster.public NormalizedCentroidCluster(ClusterType centroid, ClusterType normalizedCentroid, java.util.Collection<? extends ClusterType> members)
centroid - The centroid of the clusternormalizedCentroid - The normalized centroid of the cluster.members - The members of the cluster.public NormalizedCentroidCluster(int index,
ClusterType centroid,
ClusterType normalizedCentroid,
java.util.Collection<? extends ClusterType> members)
index - The index of the cluster.centroid - The centroid of the cluster.normalizedCentroid - The normalized centroid of the cluster.members - The members of the cluster.public ClusterType getNormalizedCentroid()
public void setNormalizedCentroid(ClusterType normalizedCentroid)
normalizedCentroid - The normalized centroid of the cluster.