Re compute interference and change distances

This commit is contained in:
Quentin Legot 2023-04-04 08:30:21 +02:00
parent 7831bc2d2b
commit be9dd99b39
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public class AccessPoint {
cell1.schedule(ticks);
cell2.schedule(ticks);
//simulation des interférences
// computeInterference();
computeInterference();
// traite les données et les enregistre dans un fichier
try {
cell1.analyseData(ticks, users);

View File

@ -90,7 +90,7 @@ public class Main {
private static List<User> generateUsers(int nbUsers, int timeSlotNb, int subCarrierNb) {
List<User> users = new ArrayList<>();
// 2 groupes d'utilisateurs, proches et éloignés
double[] distance = { 200d, 400d };
double[] distance = { 150d, 400d };
for (double v : distance) {
for (int j = 0; j < nbUsers; j++) {
User user = new User(v, timeSlotNb, subCarrierNb);