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\).

../_images/e3x.nn.functions.damping.smooth_damping_0_0.svg
Parameters:
Return type:

<class 'Float[Array, '...']'>

Returns:

The function value.