NormalizationH1

Normalization model that assumes a uniform distribution of the term frequency.

While this model is parameterless in the original article, information-based models (see [ IBSimilarity]) introduced a multiplying factor. The default value for the `c` parameter is `1`.

Constructors

Link copied to clipboard
constructor(c: Float)

Creates NormalizationH1 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.