impure functionpush
Store an element on the sliding window buffer and remove elements that are older as the window length
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Buffer | buffer | Memory of sliding window | |
| Real | t | Time instant of v to be stored in buffer | |
| Boolean | b | false | Value b at time instant t to be stored in buffer |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Buffer | newBuffer | Updated memory of sliding window |