com.raritantechnologies.concept.clustering
Class CosineSimilarityDocumentClusterer

java.lang.Object
  extended bycom.raritantechnologies.concept.clustering.DocumentClusterer
      extended bycom.raritantechnologies.concept.clustering.CosineSimilarityDocumentClusterer
All Implemented Interfaces:
IConfigurable

public class CosineSimilarityDocumentClusterer
extends DocumentClusterer

Uses Cosine Similarity computation to get related documents.


Constructor Summary
CosineSimilarityDocumentClusterer()
           
 
Method Summary
 void computeRelatedDocs(java.util.HashMap documents)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CosineSimilarityDocumentClusterer

public CosineSimilarityDocumentClusterer()
Method Detail

computeRelatedDocs

public void computeRelatedDocs(java.util.HashMap documents)
Overrides:
computeRelatedDocs in class DocumentClusterer

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable
Overrides:
initialize in class DocumentClusterer