e3x.nn.functions.damping.smooth_damping
- e3x.nn.functions.damping.smooth_damping(x, gamma=1.0)[source]
Smooth damping function.
Computes the function
\[\mathrm{smooth\_damping}(x) = \exp\left(-\frac{1}{\exp(\gamma x) - 1} \right)\]where \(\gamma\) =
gamma. This function (and all its derivatives) are \(0\) at \(x=0\). Further, the function quickly approaches \(1\) for \(x > 0\).- Parameters:
x (
<class 'Float[Array, '...']'>) – Input array.gamma (
Union[Float[Array, ''], float], default:1.0) – Exponential decay constant.
- Return type:
- Returns:
The function value.