public class MiniBatchCentroidCluster extends CentroidCluster<Vector>
centroid
DEFAULT_INDEX
Constructor and Description |
---|
MiniBatchCentroidCluster(java.util.Collection<? extends Vector> initialPoints) |
Modifier and Type | Method and Description |
---|---|
void |
updateCluster(java.util.Collection<? extends Vector> dataPoints)
Updates the clusters for all the given points.
|
void |
updateCluster(Vector dataPoint)
Updates the cluster for the given point.
|
getCentroid, setCentroid
clone, getIndex, getMembers, setIndex
public MiniBatchCentroidCluster(java.util.Collection<? extends Vector> initialPoints)
initialPoints
- public void updateCluster(Vector dataPoint)
dataPoint
- The example to update for.public void updateCluster(java.util.Collection<? extends Vector> dataPoints)
dataPoints
- The examples to update.