Skip to main content

Module transformations

Module transformations 

Source

Modulesยง

channel_impairment
A channel model: FIR channel, Doppler shift, non-linearity and noise.
channel_receiver
Receiver front-end that mixes a channel to baseband and then resamples.
channel_transmitter
Transmitter front-end that resamples then frequency shifts.
frequency_mixer
A frequency mixer is used to frequency shift a signal by multiplying it with a complex exponential. This operation is commonly used in applications such as modulation, demodulation, and frequency translation in communication systems. The FrequencyMixer struct maintains the current phase of the complex exponential and the normalized frequency increment, which determines how much the phase is advanced for each sample processed. The process method takes an input signal (either real or complex) and multiplies each sample by the corresponding value of the complex exponential based on the current phase. The phase is then incremented for the next sample, ensuring that the frequency shift is applied consistently across the entire signal.
non_linearity_transformers
This transformation applies a non-linear function to the input signal, which can be used for various purposes such as distortion effects in audio processing, or for implementing activation functions in neural networks. The non-linearity is applied element-wise to the input signal, and the output is of the same length as the input. The specific non-linear function can be defined by the user, allowing for flexibility in how the transformation is applied to the signal.