Normalization

abstract class Normalization

This class acts as the base class for the implementations of the term frequency normalization methods in the DFR framework.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Types

Link copied to clipboard

Implementation used when there is no normalization.

Functions

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

Returns an explanation for the normalized term frequency.

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

Returns the normalized term frequency.

Link copied to clipboard
abstract 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.