|
||||||||||
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.
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. |
Graph |
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 |
Constructor Detail |
---|
public SingleLinkClusterer()
Method Detail |
---|
public void calculateClusters(java.util.Set sObjects, SimilarityComparatorListener clDistanceCalculator)
IClusterer
calculateClusters
in interface IClusterer
sObjects
- The set of objects to cluster.clDistanceCalculator
- The similarity comparison event listener object, that actually performs the
similarity calculation.public Graph getHierarchy()
IClusterer
getHierarchy
in interface IClusterer
Graph
.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 |