org.datamanager.clustering.strategy.bayes
Class NaiveBayesStrategy

java.lang.Object
  |
  +--org.datamanager.clustering.strategy.bayes.NaiveBayesStrategy
All Implemented Interfaces:
ClusteringStrategy

public class NaiveBayesStrategy
extends Object
implements ClusteringStrategy

This class represents a naive Bayesian strategy for clustering Emails. See http://sourceforge.net/docman/display_doc.php?docid=13334&group_id=63137 for algorithm details.

Version:
$Revision: 1.4 $
Author:
Team Helium

Field Summary
static double DEFAULT_THRESHOLD
           
 
Method Summary
 void addEntity(Entity entity)
          Satisfying interface.
static NaiveBayesStrategy getInstance()
           
 double getSimilarityBetween(Entity a, Entity b)
           
 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
Method Detail

getSimilarityBetween

public double getSimilarityBetween(Entity a,
                                   Entity b)
Specified by:
getSimilarityBetween in interface ClusteringStrategy

addEntity

public void addEntity(Entity entity)
Satisfying interface.

Specified by:
addEntity in interface ClusteringStrategy

getInstance

public static final NaiveBayesStrategy getInstance()

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