Interface TermWeighting

    • Method Detail

      • calculateTermWeight

        double calculateTermWeight​(int termFrequency,
                                   int documentFrequency,
                                   int documentCount)
        Calculates the weight of a term for a single document.
        Parameters:
        termFrequency - frequency of the term in the document
        documentFrequency - the number of documents containing the term
        documentCount - total number of documents