Distribution

abstract class Distribution

The probabilistic distribution used to model term occurrence in information-based models.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun explain(stats: BasicStats, tfn: Double, lambda: Double): Explanation

Explains the score. Returns the name of the model only, since both tfn and lambda are explained elsewhere.

Link copied to clipboard
abstract fun score(stats: BasicStats, tfn: Double, lambda: Double): Double

Computes the score.

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

Subclasses must override this method to return the name of the distribution.