|
LTE Primopredajnik
|
Public Member Functions | |
| __init__ (self, int constraint_len=7, Sequence[int] generators_octal=(0o133, 0o171, 0o165), bool tail_biting=False) | |
| np.ndarray | encode (self, Sequence[int] bits) |
Public Attributes | |
| K = constraint_len | |
| generators = np.asarray(generators_octal, dtype=int) | |
| n_out = self.generators.size | |
| tail_biting = tail_biting | |
| taps = np.zeros((self.n_out, self.K), dtype=np.uint8) | |
LTE convolutional encoder (rate 1/3, hard-decision)
Constraint length:
K = 7
Generator polynomials (octal):
[133, 171, 165]
| np.ndarray transmitter.convolutional.ConvolutionalEncoder.encode | ( | self, | |
| Sequence[int] | bits ) |
Convolutional encoding (hard bits).
Parameters
----------
bits : Sequence[int]
Input bits (0/1), shape (N,)
Returns
-------
np.ndarray
Encoded bits, shape (N * n_out,)