torchsig.utils.dspΒΆ
Digital Signal Processing (DSP) Utils
Functions
Calculates bandwidth from lower frequency and upper frequency |
|
Calculates center frequency from lower frequency and upper frequency |
|
Computes two-dimensional spectrogram values in dB. |
|
Wrapper function to implement convolution() |
|
Designs half band filter weights for dyadic resampling |
|
Estimates FIR filter length |
|
Estimate the bandwidth of a tone |
|
Performs a frequency shift |
|
Designs Gaussian filter weights |
|
Applies power of 2 resampling |
|
Is the number even? |
|
Is the number a multiple of 4? |
|
Is the number odd? |
|
Low-pass filter design |
|
Iteratively designs a low-pass filter using the window method, adjusting the filter length to meet the desired stopband attenuation. |
|
Calculates the lower frequency from center frequency and bandwidth |
|
Multi-stage polyphase filterbank-based decimation |
|
Multi-stage polyphase filterbank-based interpolation |
|
Multi-stage polyphase filterbank-based resampling. |
|
Generates additive complex noise of specified power and type. |
|
Zero pads the head and tail of a signal |
|
Partitions filter coefficients into a polyphase filter bank. |
|
Integer-rate polyphase filterbank-based decimation |
|
Fractional rate polyphase resampler |
|
Integer-rate polyphase filterbank-based interpolation |
|
Designs the prototype filter for a polyphase filter bank |
|
Designs polyphase filterbank weights for decimation |
|
Designs polyphase filterbank weights for interpolation |
|
Implements sampling clock impairments (jitter and drift) using polyphase filtering. |
|
Slices the head and tail of a signal |
|
Slices the tail of a signal |
|
Designs square-root raised cosine (SRRC) pulse shaping filter |
|
Applies a BPF to avoid aliasing |
|
Updates the SNR and bandwidth of a signal based on dataset parameters. |
|
Calculates upper frequency from center frequency and bandwidth |
|
Upsamples a signal |