Merge remote-tracking branch 'origin/master'

This commit is contained in:
Quentin Legot 2023-03-28 09:30:29 +02:00
commit cb18ccb0c7

View File

@ -37,6 +37,18 @@ def rb_available() -> np.ndarray:
nb += 1 nb += 1
return available return available
def delay() -> np.ndarray:
delays = np.zeros((size, 2))
nb = 0
for i in nb_files:
data = pd.read_csv(".." + os.sep + "export" + os.sep + i, delimiter=';').to_numpy()
nb_users = i.split(".")[0]
d = data[:, 5]
for x in d:
delays[nb, 0] = int(nb_users)
delays[nb, 1] = float(x)
nb += 1
return delays
averages = mean_mkn() averages = mean_mkn()
available = rb_available() available = rb_available()
@ -57,4 +69,4 @@ fig, ax = plt.subplots()
ax.scatter(available[:, 0], available[:, 1]) ax.scatter(available[:, 0], available[:, 1])
ax.set(xlabel='number of users', ylabel='RB utilisés', title='Pourcentage de RB utilisés') ax.set(xlabel='number of users', ylabel='RB utilisés', title='Pourcentage de RB utilisés')
ax.grid() ax.grid()
plt.show() plt.show()