public class SimpleNgramEntryStatistics extends Object implements NgramEntryStatistics, org.apache.hadoop.io.Writable
Constructor and Description |
---|
SimpleNgramEntryStatistics() |
SimpleNgramEntryStatistics(EntryStatistics e) |
SimpleNgramEntryStatistics(int ws) |
Modifier and Type | Method and Description |
---|---|
void |
add(EntryStatistics e)
Increment the statistics of this object by that of another
|
int |
getDocumentFrequency()
The number of documents that the entry (term) occurred in
|
int |
getFrequency()
The frequency (total number of occurrences) of the entry (term).
|
int |
getMaxFrequencyInDocuments() |
int |
getTermId()
The id of the term
|
int |
getWindowSize() |
EntryStatistics |
getWritableEntryStatistics()
Get a copy of these entry statistics that can be reused.
|
void |
readFields(DataInput in) |
void |
setDocumentFrequency(int nt) |
void |
setFrequency(int F) |
void |
setMaxFrequencyInDocuments(int max) |
void |
setWindowSize(int ws) |
void |
subtract(EntryStatistics e)
Decrement the statistics of this object by that of another
|
String |
toString() |
void |
write(DataOutput out) |
public SimpleNgramEntryStatistics(EntryStatistics e)
public SimpleNgramEntryStatistics()
public SimpleNgramEntryStatistics(int ws)
public int getFrequency()
EntryStatistics
getFrequency
in interface EntryStatistics
public int getDocumentFrequency()
EntryStatistics
getDocumentFrequency
in interface EntryStatistics
public int getTermId()
EntryStatistics
getTermId
in interface EntryStatistics
public void add(EntryStatistics e)
EntryStatistics
add
in interface EntryStatistics
public void subtract(EntryStatistics e)
EntryStatistics
subtract
in interface EntryStatistics
public EntryStatistics getWritableEntryStatistics()
EntryStatistics
getWritableEntryStatistics
in interface EntryStatistics
public int getWindowSize()
getWindowSize
in interface NgramEntryStatistics
public void setWindowSize(int ws)
setWindowSize
in interface NgramEntryStatistics
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int getMaxFrequencyInDocuments()
getMaxFrequencyInDocuments
in interface EntryStatistics
public void setMaxFrequencyInDocuments(int max)
setMaxFrequencyInDocuments
in interface EntryStatistics
public void setFrequency(int F)
setFrequency
in interface EntryStatistics
public void setDocumentFrequency(int nt)
setDocumentFrequency
in interface EntryStatistics
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow