commpy.filters.rrcosfilter

rrcosfilter(N, alpha, Ts, Fs)

Generates a root raised cosine (RRC) filter (FIR) impulse response.

Parameters:
  • N (int) – Length of the filter in samples.
  • alpha (float) – Roll off factor (Valid values are [0, 1]).
  • Ts (float) – Symbol period in seconds.
  • Fs (float) – Sampling Rate in Hz.
Returns:

  • time_idx (1-D ndarray of floats) – Array containing the time indices, in seconds, for the impulse response.
  • h_rrc (1-D ndarray of floats) – Impulse response of the root raised cosine filter.