Skip to content

Commit

Permalink
Merge pull request #5 from saltchicken/patch-1
Browse files Browse the repository at this point in the history
Remove 1/Ts from raised-cosine calculation
  • Loading branch information
777arc authored Feb 21, 2024
2 parents bbadb0a + 453c4b8 commit 582e33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/pulse_shaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ We will create a raised-cosine filter using a :math:`\beta` of 0.35, and we will
beta = 0.35
Ts = sps # Assume sample rate is 1 Hz, so sample period is 1, so *symbol* period is 8
t = np.arange(num_taps) - (num_taps-1)//2
h = 1/Ts*np.sinc(t/Ts) * np.cos(np.pi*beta*t/Ts) / (1 - (2*beta*t/Ts)**2)
h = np.sinc(t/Ts) * np.cos(np.pi*beta*t/Ts) / (1 - (2*beta*t/Ts)**2)
plt.figure(1)
plt.plot(t, h, '.')
plt.grid(True)
Expand Down

0 comments on commit 582e33d

Please sign in to comment.