CompetitiveImpactAccumulator

This class accumulates the (freq, norm) pairs that may produce competitive scores.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(freq: Int, norm: Long)

Accumulate a (freq,norm) pair, updating this structure if there is no equivalent or more competitive entry already.

Link copied to clipboard

Merge acc into this.

Link copied to clipboard
fun clear()

Reset to the same state it was in after creation.

Link copied to clipboard

Replace the content of this acc with the provided acc.

Link copied to clipboard

Get the set of competitive freq and norm pairs, ordered by increasing freq and norm.

Link copied to clipboard
open override fun toString(): String