[][src]Function libp2p_gossipsub::score_parameter_decay

pub fn score_parameter_decay(decay: Duration) -> f64

Computes the decay factor for a parameter, assuming the decay_interval is 1s and that the value decays to zero if it drops below 0.01.