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