norse.torch.functional.heaviside

norse.torch.functional.heaviside#

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}\]

Functions

heaviside(data)