Maximum Ratio Combining

class MaximumRatioCombining

Bases: SymbolPrecoder, Serializable

Maximum ratio combining symbol decoding step

Symbol Precoder initialization.

yaml_tag: str = 'MRC'

YAML serialization tag.

encode(symbol_stream)

Encode a data stream before transmission.

This operation may modify the number of streams as well as the number of data symbols per stream.

Parameters

symbols (StatedSymbols) – Symbols to be encoded.

Returns: Encoded symbols.

Raises

NotImplementedError – If an encoding operation is not supported.

Return type

ndarray

decode(symbol_stream, stream_responses, stream_noises)

Decode a data stream before reception.

This operation may modify the number of streams as well as the number of data symbols per stream.

Parameters

symbols (Symbols) – Symbols to be decoded.

Returns: Decoded symbols.

Raises

NotImplementedError – If an encoding operation is not supported.

Return type

Tuple[ndarray, ndarray, ndarray]

property num_input_streams: int

Required number of input symbol streams for encoding / number of resulting output streams after decoding.

Returns

The number of symbol streams.

Return type

int

property num_output_streams: int

Required number of input symbol streams for decoding / number of resulting output streams after encoding.

Returns

The number of symbol streams.

Return type

int