From 7719de7fdb68337252254c27428595179a40f5bc Mon Sep 17 00:00:00 2001 From: Remi Boure Date: Fri, 24 Mar 2023 08:39:28 +0100 Subject: [PATCH] =?UTF-8?q?Valeur=20d=C3=A9bit=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/fr/ntr/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/ntr/User.java b/src/main/java/fr/ntr/User.java index 136a55c..4d3f9e6 100644 --- a/src/main/java/fr/ntr/User.java +++ b/src/main/java/fr/ntr/User.java @@ -28,7 +28,7 @@ public class User { for(int j = 0; j < bandwidthTable[i].length; j++) { double h = 1 * Math.sqrt(-2 * Math.log(1 - random)); double gain = h * Math.pow(10, random * 1/10) * Math.pow(1 / this.distance, 3.5); - double spectralEfficiency = (43 * gain) / (15000 * (-174)); + double spectralEfficiency = (20 * gain) / (15000 * (3.9*Math.pow(10, -21))); double mkn = Math.log(1 + spectralEfficiency) / Math.log(2); this.bandwidthTable[i][j] = mkn; }