Class LinearTfIdfTermWeighting

    • Constructor Detail

      • LinearTfIdfTermWeighting

        public LinearTfIdfTermWeighting()
    • Method Detail

      • calculateTermWeight

        public double calculateTermWeight​(int termFrequency,
                                          int documentFrequency,
                                          int documentCount)
        Description copied from interface: TermWeighting
        Calculates the weight of a term for a single document.
        Specified by:
        calculateTermWeight in interface TermWeighting
        Parameters:
        termFrequency - frequency of the term in the document
        documentFrequency - the number of documents containing the term
        documentCount - total number of documents