# boxstep

The boxstep function is somewhere between step and smoothstep. It is the result of the convolution of a box filter with a step edge. The width of the box filter is (b - a) and the slope of the ramp is 1/width.

boxstep(a,b,x)
Returns 0 when (x <= a), 1 when (x >= b), a linear transition from 0 to 1 when (a < x < b), or (-1) on error (a == b).
COPY/// boxstep(a,b,x)
//
//  Returns 0 when (x <= a), 1 when (x >= b), a linear transition
//  from 0 to 1 when (a < x < b), or (-1) on error (a == b).
//
//      a           lower bound, real
//      b           upper bound, real
//      x           value, real
//