Algosim documentation: ramp

ramp

The ramp function.

Syntax

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).

See also