Utility Functions#

subcarrier_frequencies(num_subcarriers, ...)

Compute the baseband frequencies of num_subcarrier subcarriers spaced by subcarrier_spacing, i.e.,

time_lag_discrete_time_channel(bandwidth[, ...])

Compute the smallest and largest time-lag for the discrete complex baseband channel, i.e., \(L_{\text{min}}\) and \(L_{\text{max}}\).

deg_2_rad(x)

Convert degree to radian

rad_2_deg(x)

Convert radian to degree

wrap_angle_0_360(angle)

Wrap angle to (0,360)

drop_uts_in_sector(batch_size, num_ut, ...)

Sample UT locations uniformly at random within a sector

relocate_uts(ut_loc, sector_id, cell_loc)

Relocate the UTs by rotating them into the sector with index sector_id and transposing them to the cell centered on cell_loc

set_3gpp_scenario_parameters(scenario[, ...])

Set valid parameters for a specified 3GPP system level scenario (RMa, UMi, or UMa)

gen_single_sector_topology(batch_size, ...)

Generate a batch of topologies consisting of a single BS located at the origin and num_ut UTs randomly and uniformly dropped in a cell sector

gen_single_sector_topology_interferers(...)

Generate a batch of topologies consisting of a single BS located at the origin, num_ut UTs randomly and uniformly dropped in a cell sector, and num_interferer interfering UTs randomly dropped in the adjacent cells

exp_corr_mat(a, n[, precision, device])

Generates exponential correlation matrices

one_ring_corr_mat(phi_deg, num_ant[, d_h, ...])

Generates covariance matrices from the one-ring model