Very similar to .lagud. Useful for smoothing sensor data.
in |
The signal to be lagged. |
up |
Lag amount for increasing numbers. A higher value here will result in more lag. |
down |
Lag amount for decreasing numbers. If nil then set to same as up. |
up |
Lag amount for increasing numbers. |
down |
Lag amount for decreasing numbers. If nil then set to same as up. |
in |
The values to be lagged. |
Set or get the amount of lag when using the slide method.