org.datamanager.clustering.strategy.gsquared
Class GSquaredStrategy
java.lang.Object
|
+--org.datamanager.clustering.strategy.gsquared.GSquaredStrategy
- All Implemented Interfaces:
- ClusteringStrategy
- public class GSquaredStrategy
- extends Object
- implements ClusteringStrategy
This class represents a gsquared strategy for clustering Emails.
At this time it only does pairwise comparisons.
FIXME: lots of unused println()s in here.
- Version:
- $Revision: 1.6 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLD
- See Also:
- Constant Field Values
MINIMUM_WORD_LENGTH
public static final int MINIMUM_WORD_LENGTH
- See Also:
- Constant Field Values
MINIMUM_WORDLIST_LENGTH
public static final int MINIMUM_WORDLIST_LENGTH
- See Also:
- Constant Field Values
getSimilarityBetween
public double getSimilarityBetween(Entity a,
Entity b)
- Gets the similarity between two entities by doing
a simple GSquared comparison of the documents.
- Specified by:
getSimilarityBetween
in interface ClusteringStrategy
getInstance
public static final GSquaredStrategy getInstance()
addEntity
public void addEntity(Entity entity)
- Satisfying interface.
- Specified by:
addEntity
in interface ClusteringStrategy
setThreshold
public void setThreshold(double threshold)
- Specified by:
setThreshold
in interface ClusteringStrategy
getThreshold
public double getThreshold()
- Specified by:
getThreshold
in interface ClusteringStrategy
See the Helium Website