aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-07-15 12:04:48 +0100
committertslil <tslil@posteo.de>2026-07-15 12:06:45 +0100
commit322271f3d322bc25c30ebe936c7428f1b0df479d (patch)
tree22a7fa3eb7aff47feb034b731db6f12d1a2677e8 /src/config.rs
parentab2097f633e63a80024ab191c012ab527a04e54b (diff)
add half-life to history weighting
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 2 insertions, 0 deletions
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,
}
}
}