Skip to main content

VALUE_FACTOR_NUMERATOR

Constant VALUE_FACTOR_NUMERATOR 

Source
const VALUE_FACTOR_NUMERATOR: f64 = 0.16666666666666666;
Expand description

Value factor numerator matching vanilla’s inline literal 0.16666666666666666 (1/6).

Vanilla declares a constant TARGET_DEVIATION = 0.3333333333333333 (1/3) but never uses it — the constructor hardcodes 0.16666666666666666 (1/6) as the numerator in valueFactor = 0.16666... / expectedDeviation(span). We name this differently to avoid confusion with vanilla’s dead TARGET_DEVIATION constant.