This commit is contained in:
Tr1xt4n 2023-03-10 09:29:10 +01:00
parent 2d871bc4f6
commit fb37cd6d62

View File

@ -14,7 +14,7 @@ public class MaxSNR extends Scheduler {
User selectedUser = null; User selectedUser = null;
double maxSNR= 0; double maxSNR= 0;
for (User user : Users) { for (User user : Users) {
double snr = (Math.log(1 + effSpect) / Math.log(2)); double snr = ;
if (snr > maxSNR) { if (snr > maxSNR) {
maxSNR = snr; maxSNR = snr;
selectedUser = user; selectedUser = user;