commpy.filters.rectfilter¶
-
rectfilter
(N, Ts, Fs)¶ Generates a rectangular filter (FIR) impulse response.
Parameters: - N (int) – Length of the filter in samples.
- Ts (float) – Symbol period in seconds.
- Fs (float) – Sampling Rate in Hz.
Returns: - time_index (1-D ndarray of floats) – Array containing the time indices for the impulse response.
- h_rect (1-D ndarray of floats) – Impulse response of the rectangular filter.