summaryrefslogtreecommitdiffstats
path: root/testing/testsVar.java
blob: 32695d33be7c5cba85dc4586adfe913e946c1238 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);

	}

}