mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Merge remote-tracking branch 'origin/hotfix_AWGN' into integration_2026_w18 (!4082)
fixing typo in AWGN calculation
This commit is contained in:
@@ -1363,7 +1363,7 @@ static void rfsimulator_read_internal(rfsimulator_state_t *t,
|
|||||||
int16_t noise_power = (int16_t)(32767.0 / powf(10.0, .05 * -get_noise_power_dBFS()));
|
int16_t noise_power = (int16_t)(32767.0 / powf(10.0, .05 * -get_noise_power_dBFS()));
|
||||||
for (int a = 0; a < nbAnt; a++) {
|
for (int a = 0; a < nbAnt; a++) {
|
||||||
for (int i = 0; i < nsamps; i++) {
|
for (int i = 0; i < nsamps; i++) {
|
||||||
temp_array[a][i].r += noise_power + gaussZiggurat(0.0, 1.0);
|
temp_array[a][i].r += noise_power * gaussZiggurat(0.0, 1.0);
|
||||||
temp_array[a][i].i += noise_power * gaussZiggurat(0.0, 1.0);
|
temp_array[a][i].i += noise_power * gaussZiggurat(0.0, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user