public class LinearKMeansCluster extends Cluster
it.uniroma2.sag.kelp.data.clustering.Cluster
with the notion of
Centroid.Constructor and Description |
---|
LinearKMeansCluster() |
LinearKMeansCluster(String label) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
This function clear the set of object inside the cluster
|
Vector |
getCentroid() |
void |
setCentroid(Vector centroid) |
void |
updateCentroid(String representationName)
The centroid is calculated as the mean of all
Vector
representations stored in the clusters. |
add, getExamples, getLabel, setExamples, setLabel, size, sortAscendingOrder, sortDescendingOrder, toString
public LinearKMeansCluster()
public LinearKMeansCluster(String label)
label
- The cluster labelpublic void clear()
Cluster
public Vector getCentroid()
public void setCentroid(Vector centroid)
public void updateCentroid(String representationName)
Vector
representations stored in the clusters.representationName
- The name of the rapresentation considered in the MeanCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.