summaryrefslogtreecommitdiffstats
path: root/Variance.java
diff options
context:
space:
mode:
Diffstat (limited to 'Variance.java')
-rw-r--r--Variance.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/Variance.java b/Variance.java
new file mode 100644
index 0000000..5c916e6
--- /dev/null
+++ b/Variance.java
@@ -0,0 +1,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");
+ }
+ }
+
+ }
+}