summaryrefslogtreecommitdiffstats
path: root/testing/testsVar.java
diff options
context:
space:
mode:
Diffstat (limited to 'testing/testsVar.java')
-rw-r--r--testing/testsVar.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/testsVar.java b/testing/testsVar.java
new file mode 100644
index 0000000..32695d3
--- /dev/null
+++ b/testing/testsVar.java
@@ -0,0 +1,26 @@
+package testing;
+
+import DataStructure.SingleBTS;
+
+public class testsVar {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ SingleBTS bts1 = new SingleBTS(123, "test");
+ bts1.addDl(-75);
+ bts1.addDl(-78);
+ bts1.addDl(-73);
+ bts1.addDl(-80);
+ System.out.println("Varianz in mW:" + bts1.getVarianceDLmW());
+ System.out.println("Varianz in dB:" + bts1.getVarianceDLdB());
+ System.out.print("umrechnen:");
+ double umrechnung = 0;// 10 * Math.log10(bts1.getVarianceDLmW());
+ double var = bts1.getVarianceDLmW();
+ umrechnung = Math.log(var / Math.pow(bts1.getDLmW(), 2) + 1);
+ System.out.println(umrechnung);
+
+ }
+
+}