exponential_decay

Function exponential_decay 

Source
pub fn exponential_decay(x: f32, half_life: f32) -> f32
Expand description

Convenience: standard exponential decay with the given half-life.

Equivalent to parametric_decay(x, &DecayParams::exponential(half_life)).

This is the direct replacement for the legacy 0.5_f32.powf(x / half_life).