Soft thresholding (source code)

= Soft thresholding
{wiki}

Soft thresholding maps $u$ to $\operatorname{sgn}(u)(|u|-\lambda)_+$ and is the proximal operator of the absolute-value penalty.