Weighting

data class Weighting<T : ConfigUnit.WeightedScorable.Override>(val default: Double, val limit: Double?, val overrides: List<T>?)

The policy for score weighting.

Parameters

T

The WeightedScorable.Override concrete class used as predicated score overrides.

Constructors

Link copied to clipboard
constructor(default: Double, limit: Double?, overrides: List<T>?)

Properties

Link copied to clipboard

The default score for each element.

Link copied to clipboard

The upper limit for accumulation. If null, implies that there is no limit.

Link copied to clipboard

The list of predicates and their respective score overrides.