gr.demokritos.iit.jinsect.documentModel.comparators
Class NGramCachedDistroGraphComparator

java.lang.Object
  extended by gr.demokritos.iit.jinsect.documentModel.comparators.NGramGraphComparator
      extended by gr.demokritos.iit.jinsect.documentModel.comparators.NGramCachedGraphComparator
          extended by gr.demokritos.iit.jinsect.documentModel.comparators.NGramCachedDistroGraphComparator
All Implemented Interfaces:
Notifier, SimilarityComparatorListener

public class NGramCachedDistroGraphComparator
extends NGramCachedGraphComparator

A class that can compare graphs with distributions on their edges (like DocumentNGramDistroGraph).

See Also:
DocumentNGramDistroGraph

Field Summary
protected  IDistributionComparisonListener distroComparator
           
 
Fields inherited from class gr.demokritos.iit.jinsect.documentModel.comparators.NGramGraphComparator
Listener
 
Constructor Summary
NGramCachedDistroGraphComparator()
           
NGramCachedDistroGraphComparator(IDistributionComparisonListener cl)
           
 
Method Summary
 GraphSimilarity getSimilarityBetween(java.lang.Object oFirst, java.lang.Object oSecond)
          Returns the similarity of the document n-gram graph oFirst as opposed to oSecond.
 
Methods inherited from class gr.demokritos.iit.jinsect.documentModel.comparators.NGramGraphComparator
getNotificationListener, removeNotificationListener, setNotificationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distroComparator

protected IDistributionComparisonListener distroComparator
Constructor Detail

NGramCachedDistroGraphComparator

public NGramCachedDistroGraphComparator()

NGramCachedDistroGraphComparator

public NGramCachedDistroGraphComparator(IDistributionComparisonListener cl)
Method Detail

getSimilarityBetween

public GraphSimilarity getSimilarityBetween(java.lang.Object oFirst,
                                            java.lang.Object oSecond)
Returns the similarity of the document n-gram graph oFirst as opposed to oSecond.

Specified by:
getSimilarityBetween in interface SimilarityComparatorListener
Overrides:
getSimilarityBetween in class NGramCachedGraphComparator
Parameters:
oFirst - The first document n-gram graph.
oSecond - The second document n-gram graph.
Returns:
A GraphSimilarity object indicative of the similarity between the two graphs.
See Also:
DocumentNGramGraph