Function rc_filter_prefill_inputs#
Defined in File filter.h
Function Documentation#
-
int rc_filter_prefill_inputs(rc_filter_t *f, double in)#
Fills all previous inputs to the filter as if they had been equal to ‘in’.
Most useful when starting high-pass filters to prevent unwanted jumps in the output when starting with non-zero input.
- Parameters:
f – Pointer to user’s rc_filter_t struct
in – [in] Input value to fill
- Returns:
Returns 0 on success or -1 on failure.