Polar Coding¶
A Python wrapper around the AFF3CT [1] project, transferring the Polar [2] implementations to the Hermes forward error correction pipeline structure.
- class PolarSCCoding(self: hermespy.fec.aff3ct.polar.PolarSCCoding, arg0: SupportsInt | SupportsIndex, arg1: SupportsInt | SupportsIndex, arg2: SupportsFloat | SupportsIndex)[source]¶
Bases:
pybind11_object- Parameters:
- decode(self: hermespy.fec.aff3ct.polar.PolarSCCoding, arg0: Annotated[numpy.typing.ArrayLike, numpy.int32]) numpy.typing.NDArray[numpy.int32][source]¶
Decode a block of code bits to data bits.
- Parameters:
code (numpy.ndarray) – The code bit block to be decoded.
- Returns:
The data bit block after decoding.
- encode(self: hermespy.fec.aff3ct.polar.PolarSCCoding, arg0: Annotated[numpy.typing.ArrayLike, numpy.int32]) numpy.typing.NDArray[numpy.int32][source]¶
Encode a block of data bits to code bits.
- Parameters:
data (numpy.ndarray) – The data bit block to be encoded.
- Returns:
The code bit block after encoding.
- class PolarSCLCoding(self: hermespy.fec.aff3ct.polar.PolarSCLCoding, arg0: SupportsInt | SupportsIndex, arg1: SupportsInt | SupportsIndex, arg2: SupportsFloat | SupportsIndex, arg3: SupportsInt | SupportsIndex)[source]¶
Bases:
pybind11_objectSuccessive Cancellation List Polar Codes. Refer to [3] for further information.
- Parameters:
- decode(self: hermespy.fec.aff3ct.polar.PolarSCLCoding, arg0: Annotated[numpy.typing.ArrayLike, numpy.int32]) numpy.typing.NDArray[numpy.int32][source]¶
Decode a block of code bits to data bits.
- Parameters:
code (numpy.ndarray) – The code bit block to be decoded.
- Returns:
The data bit block after decoding.
- encode(self: hermespy.fec.aff3ct.polar.PolarSCLCoding, arg0: Annotated[numpy.typing.ArrayLike, numpy.int32]) numpy.typing.NDArray[numpy.int32][source]¶
Encode a block of data bits to code bits.
- Parameters:
data (numpy.ndarray) – The data bit block to be encoded.
- Returns:
The code bit block after encoding.