Class CompetitiveImpactAccumulator

  • public final class CompetitiveImpactAccumulator
    extends Object
    This class accumulates the (freq, norm) pairs that may produce competitive scores.
    • Constructor Detail

      • CompetitiveImpactAccumulator

        public CompetitiveImpactAccumulator()
        Sole constructor.
    • Method Detail

      • clear

        public void clear()
        Reset to the same state it was in after creation.
      • add

        public void add​(int freq,
                        long norm)
        Accumulate a (freq,norm) pair, updating this structure if there is no equivalent or more competitive entry already.
      • getCompetitiveFreqNormPairs

        public Collection<Impact> getCompetitiveFreqNormPairs()
        Get the set of competitive freq and norm pairs, ordered by increasing freq and norm.