Skip to main content

recency_score

Function recency_score 

Source
pub fn recency_score(created_at: &str, half_life_hours: f64) -> f32
Expand description

Compute a recency score using exponential decay. Returns a value in [0, 1] where 1 = just created, 0 = very old. half_life_hours controls decay rate (e.g., 168 = 1 week half-life).