sdynpy.signal_processing.sdynpy_srs.sdof_filter
- sdof_filter(b, a, signal, zi=None)[source]
Applies a filter to simulate a single degree of freedom system
- Parameters
b (np.ndarray) – Size 3 array representing filter coefficients used by scipy.signal.lfilter
a (np.array) – Size 3 array representing filter coefficients used by scipy.signal.lfilter
signal (np.ndarray) – The signals that are to be filtered
zi (np.ndarray, optional) – Optional initial state for the filters, having length max(len(a), len(b)) - 1. If not specified, zero initial conditions are assumed.
- Returns
filtered_signal – The filtered signal
- Return type
np.ndarray