Noise
Complex Gaussian noise generation.
Provides unity-variance complex noise arrays and thermal noise power calculations used to populate the receiver noise floor in the datacube.
band_limited_complex_noise(f_min, f_max, N_samples, fs, normalize=False)
Generates band-limited complex noise within a specified frequency range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
f_min
|
float
|
Minimum frequency limit in Hz. |
required |
f_max
|
float
|
Maximum frequency limit in Hz. |
required |
N_samples
|
int
|
Total number of time-domain samples to generate. |
required |
fs
|
float
|
Sampling frequency in Hz. |
required |
normalize
|
bool
|
If True, normalizes the output signal to have a pointwise magnitude of one. Defaults to False. |
False
|
Returns:
| Type | Description |
|---|---|
ndarray
|
A complex time-domain array representing the band-limited noise. |
Source code in src/rad_lab/noise.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
gaussian_complex_noise(mu, sigma, p, N_samples, fs, normalize=False)
Generates complex noise with a Power Spectral Density (PSD) shaped by a generalized Gaussian envelope.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mu
|
float
|
Center frequency of the Gaussian PSD in Hz. |
required |
sigma
|
float
|
Standard deviation of the Gaussian distribution. |
required |
p
|
float
|
Order of the Gaussian distribution (p=1 for standard Gaussian). |
required |
N_samples
|
int
|
Total number of samples to generate. |
required |
fs
|
float
|
Sampling frequency in Hz. |
required |
normalize
|
bool
|
If True, normalizes the output signal to have a pointwise magnitude of one. Defaults to False. |
False
|
Returns:
| Type | Description |
|---|---|
ndarray
|
A complex time-domain array with Gaussian-shaped spectral content. |
Source code in src/rad_lab/noise.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
unity_variance_complex_noise(in_size)
Generates complex Gaussian noise with unity variance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
in_size
|
tuple | int
|
Shape of the output array. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
A complex array where the real and imaginary components are |
ndarray
|
independent standard normal distributions, scaled to achieve unit variance. |
Source code in src/rad_lab/noise.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |