ramp
The ramp function.
Syntax
-
ramp(x)-
xis a real number
-
Description
The ramp function is defined by
⎧ 0 if x < 0
ramp(x) = ⎨
⎩ x if x ≥ 0.
Thus,
ramp(x) = max(x, 0) = x⋅Heaviside(x) = x⋅Iverson(x ≥ 0).