fir_from_transfer#
- gwpy.signal.filter_design.fir_from_transfer( ) NDArray[source]#
Design a Type II FIR filter given an arbitrary transfer function.
- Parameters:
- transfer
numpy.ndarray Transfer function to start from, must have at least ten samples.
- ntaps
int Number of taps in the final filter, must be an even number.
- window
str,numpy.ndarray, optional Window function to truncate with, see
scipy.signal.get_windowfor details on acceptable formats.- ncorner
int, optional Number of extra samples to zero off at low frequency.
- transfer
- Returns:
- out
numpy.ndarray A time domain FIR filter of length
ntaps.
- out
See also
scipy.signal.remezAn alternative FIR filter design using the Remez exchange algorithm.
Notes
The final FIR filter will use
rfftFFT normalisation.If
ncorneris notNone, thenncornerextra samples will be zeroed on the left as a hard highpass filter.