E - the type of objects being clusteredpublic interface Clusterer<E>
Clusterer interface defines a means of clustering
a set of input elements
Typically, the clusters returned by a clusterer will form a
partition of the input elements. This means that the clusters
will be disjoint (that is, have an empty intersection), and
that elements and foundElements will
be equal after the following:
Clusterer<E> clusterer = ...
Set<E> elements = ...
Set<Set<E>> clusters = clusterer.cluster(elements);
Set<E> foundElements = new HashSet<E>();
for (Set<E> cluster : clusters)
foundElements.addAll(cluster);
elements.equals(foundElements); // true
Copyright © 2016 Alias-i, Inc.. All rights reserved.