|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.dir.CWI
public class CWI
The CWI object represents the simplest case of
Collection-Wide-Information in an Information Retrieval system. It
stores inverse document frequency idf(java.lang.String). The frequency is
computed from the total number of documents in the system (it can be
modified via addTotalSize(long) calling), and from the number of
documents which contain a given term/word (it can be modified via
addLength(java.lang.String, long) calling).
| Constructor Summary | |
|---|---|
CWI()
Constructor for the CWI object. |
|
| Method Summary | |
|---|---|
void |
addLength(java.lang.String term,
long inc)
Add the given term, which occurs in the given number of documents, to this CWI. |
void |
addTotalSize(long inc)
Increase the number of documents in the system by the given amount. |
boolean |
defined(java.lang.String term)
Test whether CWI contains the given term. |
double |
idf(java.lang.String term)
Return the inverse document frequency for the given term. |
protected void |
reset(java.lang.String term)
Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CWI()
| Method Detail |
|---|
public boolean defined(java.lang.String term)
defined in interface CWIterm - the term
public double idf(java.lang.String term)
idf in interface CWIterm - the term
public void addTotalSize(long inc)
inc - the amount by which to increase
public void addLength(java.lang.String term,
long inc)
term - the terminc - the number of documents in which the term appearsprotected void reset(java.lang.String term)
term - Description of the Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||