summaryrefslogtreecommitdiffstats
path: root/Variance.java
blob: 5c916e69c5088df14b3163432e646086c4da433c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import java.sql.SQLException;

import DataStructure.GSMMap;
import DataStructure.GoogleOut;
import Parse.NMEAParse;
import Parse.sqlreader;

public class Variance {

	/**
	 * @param args
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	public static void main(String[] args) throws ClassNotFoundException,
			SQLException {
		String file = "varianz3-4.log";
		// NMEAParse gpslog = new NMEAParse(file);
		long[] IMSIs = { 262123456789177L, 262026550055616L, 262026003662195L,
				262012430041708L, 262073958646614L, 262230000000010L };
		int count = 0;
		for (long l : IMSIs) {
			sqlreader current = new sqlreader(new NMEAParse(file), l, 3000l);
			try {
				GSMMap map = new GSMMap(current, 0.00020);
				System.out.println("Average");
				map.average();
				System.out.println("Outlier");
				map.removeOutlier();
				System.out.println("Gnuplot Signal");
				int[] arfcn = { 806, 815, 817, 823, 877, 880 };
				map.gnuPlotDLAll(arfcn, 877);
				// System.out.println("Gnuplot Delta");
				// map.gnuPlotDeltaBTS(877, 880);
				GoogleOut google = new GoogleOut(map, "varianz/GSM-" + l
						+ "-varianz.kml");
				google.write();
				count++;
			} catch (Exception e) {
				System.out.println("IMSI " + l + "not available");
			}
		}

	}
}