Skip to main content

frecency

Function frecency 

Source
pub fn frecency(count: u32, last: u64, now: u64) -> f64
Expand description

How strongly something chosen count times, the last at last, pulls at now (both seconds since the epoch): more choices pull harder, and the pull halves every two weeks after the last. Zero for something never chosen.