Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The integer step, or Heaviside, function.
For double NaN input, int_step(NaN) returns 0.
\[ \mbox{int\_step}(x) = \begin{cases} 0 & \mbox{if } x \leq 0 \\ 1 & \mbox{if } x > 0 \\[6pt] 0 & \mbox{if } x = \textrm{NaN} \end{cases} \]
T | value type |
[in] | y | value |
Definition at line 27 of file int_step.hpp.