|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.algorithms.clustering.SingleLinkClusterer
public class SingleLinkClusterer
A single link clustering algorithm implementation class.
| Field Summary | |
|---|---|
static java.lang.String |
CLUSTER_NAME_SEPARATOR
The separator string between names of clusters in super-cluster labels. |
| Constructor Summary | |
|---|---|
SingleLinkClusterer()
Creates a new instance of SingleLinkClusterer. |
|
| Method Summary | |
|---|---|
void |
calculateClusters(java.util.Set sObjects,
SimilarityComparatorListener clDistanceCalculator)
A method clustering a set of objects, given a distance calculator upon pairs of these objects. |
UniqueVertexGraph |
getHierarchy()
Returns the (calculated) hierarchy of the clusters. |
protected double |
getSimilarityBetweenClusters(java.util.Set sClusterOne,
java.util.Set sClusterTwo,
SimilarityComparatorListener clDistanceCalculator)
Calculates the similarity between two clusters. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLUSTER_NAME_SEPARATOR
| Constructor Detail |
|---|
public SingleLinkClusterer()
| Method Detail |
|---|
public void calculateClusters(java.util.Set sObjects,
SimilarityComparatorListener clDistanceCalculator)
IClusterer
calculateClusters in interface IClusterersObjects - The set of objects to cluster.clDistanceCalculator - The similarity comparison event listener object, that actually performs the
similarity calculation.public UniqueVertexGraph getHierarchy()
IClusterer
getHierarchy in interface IClustererUniqueVertexGraph.
protected double getSimilarityBetweenClusters(java.util.Set sClusterOne,
java.util.Set sClusterTwo,
SimilarityComparatorListener clDistanceCalculator)
sClusterOne - The first cluster.sClusterTwo - The second cluster.clDistanceCalculator - The calculator of distance between set elements.
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||