NormalizationH2

Normalization model in which the term frequency is inversely related to the length.

While this model is parameterless in the original article, the thesis introduces the parameterized variant. The default value for the `c` parameter is `1`.

Constructors

Link copied to clipboard
constructor(c: Float)

Creates NormalizationH2 with the supplied parameter c.

constructor()

Properties

Link copied to clipboard
val c: Float

Functions

Link copied to clipboard
open override fun explain(stats: BasicStats, tf: Double, len: Double): Explanation

Returns an explanation for the normalized term frequency.

Link copied to clipboard
open override fun tfn(stats: BasicStats, tf: Double, len: Double): Double

Returns the normalized term frequency.

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

Subclasses must override this method to return the code of the normalization formula. Refer to the original paper for the list.