Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The step, or Heaviside, function.
The function is defined by
step(y) = (y < 0.0) ? 0 : 1
.
\[ \mbox{step}(x) = \begin{cases} 0 & \mbox{if } x \le 0 \\ 1 & \mbox{if } x \ge 0 \\[6pt] 0 & \mbox{if } x = \textrm{NaN} \end{cases} \]
T | type of value |
y | value |