org.egothor.core
Interface CWI

All Known Implementing Classes:
CWI, Rider

public interface CWI

This interface should be implemented by any class wishing to declare some knowledge of collection wide information (CWI).

Author:
Leo Galambos

Method Summary
 boolean defined(java.lang.String term)
          Test whether this object has been defined for the given term.
 double idf(java.lang.String term)
          Return the inverse document frequency of the given term.
 

Method Detail

defined

boolean defined(java.lang.String term)
Test whether this object has been defined for the given term.

Parameters:
term - the term to test for
Returns:
true if it has, false otherwise

idf

double idf(java.lang.String term)
Return the inverse document frequency of the given term.

Parameters:
term - the term
Returns:
the inverse document frequency