public interface ITermWeighting
TermDocumentMatrixBuilder| Modifier and Type | Method and Description |
|---|---|
double |
calculateTermWeight(int termFrequency,
int documentFrequency,
int documentCount)
Calculates the weight of a term for a single document.
|
double calculateTermWeight(int termFrequency,
int documentFrequency,
int documentCount)
termFrequency - frequency of the term in the documentdocumentFrequency - the number of documents containing the termdocumentCount - total number of documents