Interface Clustering
access this type via: ml.cluster.Clustering (provides, requires or uses)
A clustering algorithm.
Functions
Clustering(int dimensions)
void addValue(dec values[], storeData el)
Cluster[] cluster(int k)
Clustering(int dimensions)
Initialise clustering algorithm for a coordinate space of the given dimensionality
dimensions The number of dimensions of the coordinate space that you will use for clustering (e.g. 2 for an x/y space)
void addValue(dec values[], storeData el)
Add a value to the set from which clusters will be formed
values The numeric values of this coordinate, which must be of length 'dimensions'
el A data element to associate with this value
Cluster[] cluster(int k)
Run the clustering algorithm on the accumulated values
k The number of clusters to create
returns: The set of clusters