def rootRaisedCosine(t):
bit_period = 1/BIT_FREQUENCY
if (t== bit_period/(4*BETA)):
return (BETA/(np.pi*np.sqrt(2*bit_period)) * \
((np.pi + 2)*np.sin(np.pi/(4*BETA)) + (np.pi - 2)*np.cos(np.pi/(4*BETA))))
else:
return (4 * BETA / np.pi / np.sqrt(bit_period) * \
(np.cos((1 + BETA) * np.pi * t / bit_period) + \
(1 - BETA) * np.pi / (4 * BETA) * np.sinc((1-BETA)*t/bit_period)) / \
(1 - (4*BETA*t/bit_period)**2))
评论列表
文章目录