Skip to main content

squash

Function squash 

Source
pub fn squash(x: f64, scale: f64) -> f64
Expand description

A gentle squashing function: tanh(x / scale), so a feature measured in any units ends up in (-1, 1) and one wild bar cannot dominate a blend.