Skip to main content

power_scale

Function power_scale 

Source
pub fn power_scale(t: f64, power: f64) -> f64
Expand description

Vital’s power curve: (e^(p*t) - 1) / (e^p - 1), or t when |p| < 0.01. It maps 0 to 0 and 1 to 1 and bends in between.