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
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Description |
|---|---|---|---|
upper | 1 | 0.5 | Upper edge of the band |
lower | 1 | -0.5 | Lower edge of the band |
Equations
y = if u > upper then u - upper else if u < lower then u - lower else 0