BasicModelG

Geometric as limiting form of the Bose-Einstein model. The formula used in Lucene differs slightly from the one in the original paper: F is increased by 1 and N is increased by F.

Constructors

Link copied to clipboard
constructor()

Sole constructor: parameter-free

Functions

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

Returns an explanation for the score. Subclasses must override this method.

Link copied to clipboard
open override fun score(stats: BasicStats, tfn: Double, aeTimes1pTfn: Double): Double

Returns the informative content score combined with the after effect, more specifically informationContentScore * aeTimes1pTfn / (1 + tfn). This function must be non-decreasing with tfn.

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

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