-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
I use parameters in LTE 36.212 to realize a turbo code. Then I find in line 47 (turbo.py):
stream = conv_encode(msg_bits, trellis1, 'rsc')
sys_stream = stream[::2]
non_sys_stream_1 = stream[1::2]
interlv_msg_bits = interleaver.interlv(sys_stream)
puncture_matrix = array([[0, 1]])
non_sys_stream_2 = conv_encode(interlv_msg_bits, trellis2, 'rsc', puncture_matrix)
Here 'rsc' is not the right parameter in conv_encode, since the third parameter is termination(selected from {'term','cont'}). And 'rsc' should be set in Trellis like this:
memory = np.array([3])
g_matrix = np.array([[1,13]])
feedback = 11
trellis = cc.Trellis(memory, g_matrix, feedback, code_type='rsc')
So am I right? (Does there exist some wrong in turbo.py?)
Metadata
Metadata
Assignees
Labels
No labels