pub fn softplus_scaling(magnitude: &[f64], offset: f64, factor: f64) -> Vec<f64>Expand description
Softplus magnitude scaling for enhanced contrast
Applies a shifted softplus function: softplus(x) - softplus(0) where
softplus(x) = (log(1 + exp(-|f*(x-offset)|)) + max(0, f*(x-offset))) / f
and f = factor / offset.
§Arguments
magnitude- Input magnitude dataoffset- Softplus offset (controls transition point)factor- Steepness factor (default 2.0)
§Returns
Scaled magnitude