comnum.Frame#
- class comnum.Frame#
The state carried along a link during one trial: the current samples and what the metrics need (the transmitted bits, symbol indices and symbols, the constellation). Python blocks read and write
samples(andsps); the other fields are set by the source.Examples
>>> import comnum >>> f = comnum.Frame() >>> f.samples = [1, -1] >>> f.samples.dtype, f.n_streams (dtype('complex128'), 1)
- record(name, value)#
Record a diagnostic value (reported as a mean by the runners).
- constellation#
The constellation of the source (unit energy), if any.
- Type:
Constellation | None
- decoded#
Information bits decided by the decoder (uint8).
- Type:
- llr#
bit 0).
- Type:
- Type:
Bit LLRs of the demapper or the detector (positive
- payload#
Information bits of the coded blocks (uint8).
- Type:
- samples#
Current samples of antenna 0 (complex128; read and write).
- Type:
- streams#
The samples of every antenna (antenna 0 is
samples).- Type:
- symbol_noise#
Noise variance of every received symbol after equalisation or detection (float64).
- Type:
- trial#
The index of the trial of the condition (set by the runners; 0 outside a campaign), for the blocks that save or label a trial (read and write).
- Type:
- tx_bits#
Transmitted bits (uint8).
- Type:
- tx_indices#
Transmitted symbol indices (int64).
- Type:
- tx_symbols#
Transmitted symbols (complex128).
- Type: