comnum.rc_taps#
- comnum.rc_taps(t, rolloff, *, ts=1.0)#
The raised-cosine pulse at the times
t(continuous time, symbol periodts):sinc(t/ts) cos(πβt/ts) / (1 - (2βt/ts)²)divided byts, Nyquist (zero at the other symbol instants).- Parameters:
- Returns:
the pulse at every time (float64).
- Return type:
- Raises:
ValueError – for an input that is not an array of numbers of the expected shape.
Examples
>>> import comnum >>> [abs(round(float(v), 12)) for v in comnum.rc_taps([0.0, 1.0, 2.0], 0.5)] [1.0, 0.0, 0.0]