- sdr.raised_cosine(alpha: float, span: int, sps: int) ndarray
Returns a raised cosine (RC) pulse shape.
References¶
Michael Rice, Digital Communications: A Discrete Time Approach, Appendix A.
Examples¶
In [1]: h_0p1 = sdr.raised_cosine(0.1, 8, 10); \ ...: h_0p5 = sdr.raised_cosine(0.5, 8, 10); \ ...: h_0p9 = sdr.raised_cosine(0.9, 8, 10); ...: In [2]: plt.figure(figsize=(8, 4)); \ ...: sdr.plot.impulse_response(h_0p1, label=r"$\alpha = 0.1$"); \ ...: sdr.plot.impulse_response(h_0p5, label=r"$\alpha = 0.5$"); \ ...: sdr.plot.impulse_response(h_0p9, label=r"$\alpha = 0.9$") ...:
See the Pulse shapes example.