commpy.filters.rcosfilter

rcosfilter(N, alpha, Ts, Fs)

Generates a raised cosine (RC) 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 (float)) – Array containing the time indices, in seconds, for the impulse response.
  • h_rc (1-D ndarray (float)) – Impulse response of the raised cosine filter.