linearRamp() Create a linear ramp around the midpoint of a series. Slope can be adjusted as desired to create gradual or abrupt shifts.

linearRamp(lngth, width)

Arguments

lngth

length of the time axis

width

the width of the ramp. width = 0 results in a step jump at the midpoint. width = lngth/2 (the largest alloweable value) results in a smooth linear ramp

Value

values of the function (between 0 and 1)