From 322271f3d322bc25c30ebe936c7428f1b0df479d Mon Sep 17 00:00:00 2001 From: tslil Date: Wed, 15 Jul 2026 12:04:48 +0100 Subject: add half-life to history weighting --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 67721b4..5fdcfe8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -14,6 +14,7 @@ pub struct Config { pub mid_weight: f32, pub high_weight: f32, pub max_weight: f32, + pub lookback_window_halflife_in_entries: u16, } fn default_config_path() -> String { @@ -65,6 +66,7 @@ impl Default for Config { mid_weight: 0.5, high_weight: 0.75, max_weight: 1.0, + lookback_window_halflife_in_entries: 128, } } } -- cgit v1.2.3