This commit is contained in:
HappyZ 2019-05-23 20:50:07 -05:00
parent b8d7ad7024
commit 6c90057135
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def log_gamma_floorplan(
if isinstance(rx_loc, list) or isinstance(rx_loc, tuple):
print("err: only support a single loc")
return
noise = normal(GAUSSIAN_NOISE_MEAN, GAUSSIAN_NOISE_STD) if gaussian_noise else 0.0
noise = np.random.normal(GAUSSIAN_NOISE_MEAN, GAUSSIAN_NOISE_STD) if gaussian_noise else 0.0
floorplan.traceRays(pwr, tx_loc)
rss, paths = floorplan.traceRay(rx_loc)
return max(rss + noise, NOISE_FLOOR), paths