Class

ScorerUtils

ScorerUtils()

Utility class for scoring-related functions.
Constructor

# new ScorerUtils()

View Source ScorerUtils.ts, line 7

Methods

# normalize(value, min, max)

Normalizes a value within a given range.
Parameters:
Name Type Description
value The value to normalize.
min The minimum value of the range.
max The maximum value of the range.

View Source ScorerUtils.ts, line 43

The normalized value between 0 and 1. Returns 0 if the value is less than or equal to the minimum. Returns 1 if the value is greater than or equal to the maximum. Returns 0.5 if the minimum and maximum values are equal.