torchsig.transforms.functionalΒΆ

Functional transforms for reuse and custom fine-grained control.

Functions

add_slope

Add slope between each sample and its preceding sample is added to every sample.

additive_noise

Additive complex noise with specified parameters.

adjacent_channel_interference

Adds adjacent channel interference to the baseband data at a specified center frequency and power level.

awgn

Adds zero-mean complex additive white Gaussian noise with power of noise_power_db.

carrier_frequency_drift

Carrier frequency drift from a Local Oscillator (LO), with drift modeled as accumulated gaussian random phase.

carrier_phase_noise

Carrier phase noise from a Local Oscillator (LO) with the noise modeled as a Gaussian RV.

channel_swap

Swap I and Q channels of IQ data.

clock_drift

Clock drift from a Local Oscillator (LO), modeled as accumulated gaussian random noise impacting the sampling rate.

clock_jitter

Clock jitter from a Local Oscillator (LO), modeled as gaussian random noise impacting the sampling phase.

coarse_gain_change

Implements a large instantaneous jump in receiver gain.

cochannel_interference

Applies uncorrelated co-channel interference to the baseband data, modeled as shaped noise with specified parameters.

complex_to_2d

Converts IQ data to two channels (real and imaginary parts).

cut_out

Performs CutOut: replacing values with fill.

digital_agc

Automatic Gain Control algorithm (deterministic).

doppler

Applies wideband Doppler effect through time scaling.

drop_samples

Drop samples at given locations/durations with fill technique.

fading

Apply fading channel to signal.

interleave_complex

Converts complex vectors into real interleaved IQ vector.

intermodulation_products

Pass IQ data through an optimized memoryless nonlinear response model that creates local intermodulation distortion (IMD) products.

iq_imbalance

Applies IQ imbalance to IQ data.

nonlinear_amplifier

A memoryless AM/AM, AM/PM nonlinear amplifier function-based model using a hyperbolic tangent output power response defined by gain and saturation power, and a hyperbolic tangent phase response defined by maximum relative phase shift.

nonlinear_amplifier_table

A nonlinear amplifier (AM/AM, AM/PM) memoryless model that distorts an input complex signal to simulate an amplifier response, based on interpolating a table of provided power input, power output, and phase change data points.

normalize

Scale data so that a specified norm computes to 1.

passband_ripple

Functional for passband ripple transforms.

patch_shuffle

Apply shuffling of patches specified by num_patches.

phase_offset

Applies a phase rotation to data.

quantize

Quantize input to number of levels specified.

shadowing

Applies RF shadowing to the data, assuming the channel obstructions' loss are lognormal.

spectral_inversion

Applies a spectral inversion to input data.

spectrogram

Computes spectrogram from IQ data.

spectrogram_drop_samples

Drop samples at given locations/durations with fill technique.

spectrogram_image

Creates spectrogram from IQ samples.

spurs

Adds spurs to the input data.

time_reversal

Applies time reversal to data (flips horizontally).

time_varying_noise

Adds time-varying complex additive white Gaussian noise.