Impairments
awgn(avg_pwr_dB, num_samples)
Creates an Additive White Gaussian Noise (AWGN) complex, zero-mean signal with normal distribution. See also this article on AWGN.
A signal with a given channel SNR can be modeled by adding this noise signal to the desired
signal. This can be found by avg_noise_pwr_dB = avg_pwr_dB(desired signal) - SNR
in dB math.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
avg_pwr_dB
|
float
|
average power of noise signal (dB) |
required |
num_samples
|
int
|
number of output samples to generate |
required |
Source code in rfproto/impairments.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|