e3x.nn.functions.cutoff.smooth_cutoff

e3x.nn.functions.cutoff.smooth_cutoff(x, cutoff=1.0)[source]

Smooth cutoff function.

Computes the function

\[\begin{split}\mathrm{smooth\_cutoff}(x) = \begin{cases} \exp\left(1-\frac{1}{1-\left(\frac{x}{c}\right)^2}\right), & x < c\\ 0, & x \ge c \end{cases}\end{split}\]

which is zero beyond \(c\) = cutoff and is infinitely differentiable.

../_images/e3x.nn.functions.cutoff.smooth_cutoff_0_0.svg
Parameters:
Return type:

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

Returns:

The function value.

Raises:

ValueError – If cutoff is smaller or equal to 0.