comnum.rrc_taps#
- comnum.rrc_taps(t, rolloff, *, ts=1.0)#
The root-raised-cosine pulse at the times
t(continuous time, symbol periodts):(sin(πt'(1-β)) + 4βt' cos(πt'(1+β))) / (πt'(1 - (4βt')²))witht' = t/ts, divided byts, and its limits att = 0and|t| = ts/(4β)(Proakis & Salehi, Digital Communications, 5th ed., Sec. 9.2-1).- Parameters:
- Returns:
the pulse at every time (float64);
∫ h² dt = 1forts = 1.- Return type:
- Raises:
ValueError – for an input that is not an array of numbers of the expected shape.
Examples
>>> import comnum, math >>> h = comnum.rrc_taps([0.0, 1.0], 0.3) >>> round(float(h[0]), 12) == round(1 - 0.3 + 4 * 0.3 / math.pi, 12) True