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"); } } } }