From 08d5f7b0a0b24c042aa5976f66bf3a1b5b754478 Mon Sep 17 00:00:00 2001 From: Richard Zahoransky Date: Mon, 7 Nov 2011 16:29:56 +0100 Subject: Localization Code. How-To will follow... --- testing/testsVar.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testing/testsVar.java (limited to 'testing') 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); + + } + +} -- cgit v1.2.3-55-g7522