Extra Operators

This module contains convenience operators not part of the standard library.

class SignalReceiver(num_samples, sampling_rate, expected_power=0.0, *args, **kwargs)[source]

Bases: StaticOperator, Receiver[Reception]

Custom signal receiver.

Parameters:
  • num_samples (int) – Number of samples per transmission.

  • sampling_rate (float) – Sampling rate of transmission.

property energy: float
property power: float

Expected power of the received signal in Watts.

Note

Applies only to the signal-carrying parts of the transmission, silent parts shuch as guard intervals should not be considered.

class SignalTransmitter(signal, *args, **kwargs)[source]

Bases: StaticOperator, Transmitter[Transmission]

Custom signal transmitter.

Parameters:

signal (Signal) – Signal to be transmittered by the static operator for each transmission.

property power: float

Expected power of the transmitted signal in Watts.

Note

Applies only to the signal-carrying parts of the transmission, silent parts shuch as guard intervals should not be considered.

property signal: Signal

Signal to be transmitted by the static operator for each transmission.

class SilentTransmitter(num_samples, sampling_rate, *args, **kwargs)[source]

Bases: StaticOperator, Transmitter[Transmission]

Silent transmitter mock.

Parameters:
  • num_samples (int) – Number of samples per transmission.

  • sampling_rate (float) – Sampling rate of transmission.

property power: float

Expected power of the transmitted signal in Watts.

Note

Applies only to the signal-carrying parts of the transmission, silent parts shuch as guard intervals should not be considered.

class StaticOperator(num_samples, sampling_rate)[source]

Bases: object

Base class for static device operators

Parameters:
  • num_samples (int) – Number of samples per transmission.

  • sampling_rate (float) – Sampling rate of transmission.

property frame_duration: float
property num_samples: int

Number of samples per transmission.

Returns: Number of samples.

property sampling_rate: float