|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet
TextDatabase.DocumentTreeSet
public class DocumentTreeSet
A DocumentTreeSet is a TreeSet of Documents
Field Summary | |
---|---|
static java.lang.String |
documentDirectory
Holds the directory of the documents |
Constructor Summary | |
---|---|
DocumentTreeSet()
Initializes the Document Tree Set by reading all the documents held in the document directory |
Method Summary | |
---|---|
double |
getAlternateDocumentRank(Query Query,
Document Document)
Gets the document rank for the specified query. |
Document |
getDocument(java.lang.String DocumentName)
Returns the document with the corresponding document name |
double |
getDocumentRank(Query Query,
Document Document)
|
double |
getFullDocumentRank(Query Query,
Document Document)
|
KeywordTreeSet |
getGlobalKeywordTreeSet()
|
double |
getInverseDocumentFrequency(int KeywordCount)
|
double |
getInverseDocumentFrequency(Keyword Keyword)
Returns the inverse document frequency Inverse Document Frequency = log2( Number Of Documents divided by the number of times a keyword exists in the Tree Set |
double |
getInverseDocumentFrequency(java.lang.String KeywordName)
Returns the inverse document frequency Inverse Document Frequency = log2( Number Of Documents divided by the number of times a keyword exists in the Tree Set |
void |
setGlobalKeywordTreeSet(KeywordTreeSet GlobalKeywordTreeSet)
|
Methods inherited from class java.util.TreeSet |
---|
add, addAll, clear, clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Field Detail |
---|
public static java.lang.String documentDirectory
Constructor Detail |
---|
public DocumentTreeSet()
Method Detail |
---|
public KeywordTreeSet getGlobalKeywordTreeSet()
public void setGlobalKeywordTreeSet(KeywordTreeSet GlobalKeywordTreeSet)
public Document getDocument(java.lang.String DocumentName)
public double getInverseDocumentFrequency(Keyword Keyword)
public double getInverseDocumentFrequency(java.lang.String KeywordName)
public double getInverseDocumentFrequency(int KeywordCount)
public double getDocumentRank(Query Query, Document Document)
public double getAlternateDocumentRank(Query Query, Document Document)
public double getFullDocumentRank(Query Query, Document Document)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |