Dead zone

signal.dead_zone

Outputs 0 while the input is between lower and upper. Outside that band it outputs the distance past the nearer edge.

Ports

NameDomainDirection
usignalin
ysignalout

Parameters

NameUnitDefaultDescription
upper10.5Upper edge of the band
lower1-0.5Lower edge of the band

Equations

y = if u > upper then u - upper else if u < lower then u - lower else 0