public class LinearTfIdfTermWeighting extends Object implements ITermWeighting
Constructor and Description |
---|
LinearTfIdfTermWeighting() |
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)
ITermWeighting
calculateTermWeight
in interface ITermWeighting
termFrequency
- frequency of the term in the documentdocumentFrequency
- the number of documents containing the termdocumentCount
- total number of documents