public void computeStabilities(String s) {
		try {
			BufferedReader bufferedreader = new BufferedReader(new FileReader(s));
			for (int i = 0; i < 10000; i++) {
				bufferedreader.readLine();
			}

			for (int j = 0; j < 0x3d0900; j++) {
				String s1 = bufferedreader.readLine();
				if (s1 == null) {
					break;
				}
				try {
					INSEvent insevent = new INSEvent();
					LogItem logitem = new LogItem(s1);
					insevent.fromLogItem(logitem);
					mEventCache.add(insevent);
					if (mCount == 0) {
						mFirstEventTime = insevent.getTime();
					}
					else if (mCount == 1) {
						mPeriod = insevent.getTime() - mFirstEventTime;
					}
					mCount++;
					continue;
				} catch (Exception exception1) {
					System.err.println(exception1);
				}
				System.exit(0);
			}

			bufferedreader.close();
			System.out.println(mEventCache.size());
			computeStabilitiesHelperAccel();
			computeStabilitiesHelperGyro();
		} catch (Exception exception) {
			exception.printStackTrace();
			System.exit(1);
		}
	}