norse.torch.functional.heaviside

norse.torch.functional.heaviside = <torch.jit.ScriptFunction object>

A heaviside step function that truncates numbers <= 0 to 0 and everything else to 1.

\[\begin{split}H[n]=\begin{cases} 0, & n <= 0 \\ 1, & n \gt 0 \end{cases}\end{split}\]