Skip to content

Instantly share code, notes, and snippets.

View dastamoghno's full-sized avatar

Tamoghno Das dastamoghno

  • UNIVERSITY OF CALIFORNIA - IRVINE
View GitHub Profile
if __name__ == '__main__':
simulations = 5
iterations_per_simulation = 10
iterations_list = []
average_throughput_list = np.zeros(iterations_per_simulation)
for sim in range(simulations):
print('\n Simulation {} \n'.format(sim + 1))
cell = Cell_Model()
if not int(sys.argv[1]):
@dastamoghno
dastamoghno / utils.py
Last active March 19, 2020 15:48
Display function for learning of multiple D2D pairs and multiple cellular UEs
def allocate(cell):
for ch in cell.channel_list:
ch.d2d = ch.id
return cell
def display_multi(d2d_sinr_threshold, cell_sinr_threshold, noise, d2d_list,
cell_list, time_gap,channel_list):
time_list = []
time_list_dumb = []
iterations = []
@dastamoghno
dastamoghno / recycle_test.kv
Created November 1, 2019 12:05
Recycler view
#:kivy 1.11.1
ScreenManager:
LoginScreen:
DashboardScreen:
<LoginScreen>:
name: "login_screen"
BoxLayout:
orientation: "vertical"