public interface Cluster<T extends DoubleVector>
Vector
s when the Cluster
itself may discard them and then performing additional operations on the
vectors.Modifier and Type | Method and Description |
---|---|
void |
addVector(T vector,
int id)
|
T |
centroid()
Returns an immutable view of the centroid for this
Cluster . |
double |
compareWithVector(T vector)
Returns the similarity between this
Cluster and vector . |
BitSet |
dataPointIds()
Returns the set of identifiers for all data points assigned to this
cluster.
|
List<T> |
dataPointValues()
Returns the set of stored data points, if any, for this cluster.
|
void |
merge(Cluster<T> other)
|
int |
size()
Returns the total number of points assigned to this
Cluster . |
void addVector(T vector, int id)
double compareWithVector(T vector)
Cluster
and vector
.List<T> dataPointValues()
BitSet dataPointIds()
int size()
Cluster
.Copyright © 2012. All Rights Reserved.