Function rc_filter_previous_output#
Defined in File filter.h
Function Documentation#
-
double rc_filter_previous_output(rc_filter_t *f, int steps)#
Returns the output ‘steps’ back in time. Steps = 0 returns most recent output.
‘steps’ must be between 0 and order inclusively as those are the only steps retained in memory for normal filter operation. To record values further back in time we suggest creating your own rc_ringbuf_t ring buffer.
- Parameters:
f – Pointer to user’s rc_filter_t struct
steps – [in] The steps back in time, steps=0 returns most recent output.
- Returns:
Returns the requested previous output. If there is an error, returns -1.0f and prints an error message.