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 $

Field Summary
static double DEFAULT_THRESHOLD
           
static int MINIMUM_WORD_LENGTH
           
static int MINIMUM_WORDLIST_LENGTH
           
 
Method Summary
 void addEntity(Entity entity)
          Satisfying interface.
static GSquaredStrategy getInstance()
           
 double getSimilarityBetween(Entity a, Entity b)
          Gets the similarity between two entities by doing a simple GSquared comparison of the documents.
 double getThreshold()
           
 void setThreshold(double threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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