forked from tapparelj/gr-lora_sdr
-
Notifications
You must be signed in to change notification settings - Fork 2
interleaver
Martyn van Dijke edited this page May 7, 2021
·
1 revision
In the interleaving stage, codewords are interleaved so that in the end the change of burst bit errors is reduced.
This can be easily implemented by for example a simple python for loop, where D is the original matrix and I is the interleaved matrix. Sf is the spreading factor and cr is the coding rate.
for i in range(0, cr):
for j in range(0, sf):
k = np.mod((i - j - 1), sf)
I[i][j] = D[k][i]