Interface EntryStatistics

    • Method Detail

      • getFrequency

        int getFrequency()
        Return the frequency (total number of occurrences) of the term.
        Returns:
        the frequency (total number of occurrences) of the entry (term).
      • setFrequency

        void setFrequency​(int F)
        Set the frequency (total number of occurrences) of the term.
        Parameters:
        F - the frequency (total number of occurrences) of the entry (term).
      • getDocumentFrequency

        int getDocumentFrequency()
        Return the number of documents that the term occurs in.
        Returns:
        the number of documents that the term occurs in.
      • setDocumentFrequency

        void setDocumentFrequency​(int nt)
        Set the number of documents that the term occurs in.
        Parameters:
        nt - the number of documents that the term occurs in.
      • getTermId

        int getTermId()
        Return the id of the term.
        Returns:
        the id of the term.
      • getMaxFrequencyInDocuments

        int getMaxFrequencyInDocuments()
        Return the maximum in-document term frequency of the term among all documents the terms appears in.
        Returns:
        the maximum in-document term frequency of the term among all documents the terms appears in.
      • setMaxFrequencyInDocuments

        void setMaxFrequencyInDocuments​(int max)
        Set the maximum in-document term frequency of the term among all documents the terms appears in.
        Parameters:
        max - the maximum in-document term frequency of the term among all documents the terms appears in.
      • add

        void add​(EntryStatistics e)
        Increment the statistics of this object by that of another.
        Parameters:
        e - the other object whose statistics are used to increment the statistics of this object.
      • subtract

        void subtract​(EntryStatistics e)
        Decrement the statistics of this object by that of another.
        Parameters:
        e - the other object whose statistics are used to decrement the statistics of this object.
      • getWritableEntryStatistics

        EntryStatistics getWritableEntryStatistics()
        Copy this entry statistics to one that can be reused. Kind of like a clone.
        Returns:
        an identical entry statistics, but which can be reused.
        Since:
        3.6