public static String getSlopeArrowSymbolBeforeCalibration() { final List<BgReading> last = BgReading.latestUnCalculated(2); if ((last!=null) && (last.size()==2)) { final double guess_slope = 1; // This is the "Default" slope for Dex and LimiTTer final double time_delta = (last.get(0).timestamp-last.get(1).timestamp); if (time_delta<=(BgGraphBuilder.DEXCOM_PERIOD * 2)) { final double estimated_delta = (last.get(0).age_adjusted_raw_value * guess_slope) - (last.get(1).age_adjusted_raw_value * guess_slope); final double estimated_delta2 = (last.get(0).raw_data * guess_slope) - (last.get(1).raw_data * guess_slope); Log.d(TAG, "SlopeArrowBeforeCalibration: guess delta: " + estimated_delta + " delta2: " + estimated_delta2 + " timedelta: " + time_delta); return slopeToArrowSymbol(estimated_delta / (time_delta / 60000)); } else { return ""; } } else { return ""; } }
public static String getSlopeArrowSymbolBeforeCalibration() { final List<BgReading> last = BgReading.latestUnCalculated(2); if ((last!=null) && (last.size()==2)) { final double guess_slope = 1; // This is the "Default" slope for Dex and LimiTTer final double time_delta = (last.get(0).timestamp-last.get(1).timestamp); if (time_delta<=(BgGraphBuilder.DEXCOM_PERIOD * 2)) { final double estimated_delta = (last.get(0).age_adjusted_raw_value * guess_slope) - (last.get(1).age_adjusted_raw_value * guess_slope); final double estimated_delta2 = (last.get(0).raw_data * guess_slope) - (last.get(1).raw_data * guess_slope); Log.d(TAG, "SlopeArrowBeforeCalibration: guess delta: " + estimated_delta + " delta2: " + estimated_delta2 + " timedelta: " + time_delta); return slopeToArrowSymbol(estimated_delta / (time_delta / 60000)); } else { return ""; } } else { return ""; } }
public static String getSlopeArrowSymbolBeforeCalibration() { final List<BgReading> last = BgReading.latestUnCalculated(2); if ((last!=null) && (last.size()==2)) { final double guess_slope = 1; // This is the "Default" slope for Dex and LimiTTer final double time_delta = (last.get(0).timestamp-last.get(1).timestamp); if (time_delta<=(BgGraphBuilder.DEXCOM_PERIOD * 2)) { final double estimated_delta = (last.get(0).age_adjusted_raw_value * guess_slope) - (last.get(1).age_adjusted_raw_value * guess_slope); final double estimated_delta2 = (last.get(0).raw_data * guess_slope) - (last.get(1).raw_data * guess_slope); Log.d(TAG, "SlopeArrowBeforeCalibration: guess delta: " + estimated_delta + " delta2: " + estimated_delta2 + " timedelta: " + time_delta); return slopeToArrowSymbol(estimated_delta / (time_delta / 60000)); } else { return ""; } } else { return ""; } }
public static InitialDataQuality getInitialDataQuality() { // get uncalculated data JoH.clearCache(); final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); return getInitialDataQuality(uncalculated); }
public static InitialDataQuality getInitialDataQuality() { // get uncalculated data JoH.clearCache(); final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); return getInitialDataQuality(uncalculated); }
public static InitialDataQuality getInitialDataQuality() { // get uncalculated data JoH.clearCache(); final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); return getInitialDataQuality(uncalculated); }
public static boolean isDataSuitableForDoubleCalibration() { final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); if (uncalculated.size() < 3) return false; final ProcessInitialDataQuality.InitialDataQuality idq = ProcessInitialDataQuality.getInitialDataQuality(uncalculated); if (!idq.pass) { UserError.Log.d(TAG, "Data quality failure for double calibration: " + idq.advice); } return idq.pass || Pref.getBooleanDefaultFalse("bypass_calibration_quality_check"); }
public static boolean isDataSuitableForDoubleCalibration() { final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); if (uncalculated.size() < 3) return false; final ProcessInitialDataQuality.InitialDataQuality idq = ProcessInitialDataQuality.getInitialDataQuality(uncalculated); if (!idq.pass) { UserError.Log.d(TAG, "Data quality failure for double calibration: " + idq.advice); } return idq.pass || Pref.getBooleanDefaultFalse("bypass_calibration_quality_check"); }
public static boolean isDataSuitableForDoubleCalibration() { final List<BgReading> uncalculated = BgReading.latestUnCalculated(3); if (uncalculated.size() < 3) return false; final ProcessInitialDataQuality.InitialDataQuality idq = ProcessInitialDataQuality.getInitialDataQuality(uncalculated); if (!idq.pass) { UserError.Log.d(TAG, "Data quality failure for double calibration: " + idq.advice); } return idq.pass || Pref.getBooleanDefaultFalse("bypass_calibration_quality_check"); }
final List<BgReading> bgReadings = BgReading.latestUnCalculated(adjustCount); if (bgReadings == null) { Log.wtf(TAG, "bgReadings is null in adjustRecentBgReadings");
notificationText.setText(R.string.please_enter_two_calibrations_to_get_started); showUncalibratedSlope(); Log.d(TAG, "Asking for calibration B: Uncalculated BG readings: " + BgReading.latestUnCalculated(2).size() + " / Calibrations size: " + calibrations.size()); if (!Ob1G5CollectionService.isPendingCalibration()) { promptForCalibration();
notificationText.setText(R.string.please_enter_two_calibrations_to_get_started); showUncalibratedSlope(); Log.d(TAG, "Asking for calibration B: Uncalculated BG readings: " + BgReading.latestUnCalculated(2).size() + " / Calibrations size: " + calibrations.size()); if (!Ob1G5CollectionService.isPendingCalibration()) { promptForCalibration();
final List<BgReading> bgReadings = BgReading.latestUnCalculated(adjustCount); if (bgReadings == null) { Log.wtf(TAG, "bgReadings is null in adjustRecentBgReadings");
final List<BgReading> bgReadings = BgReading.latestUnCalculated(adjustCount); if (bgReadings == null) { Log.wtf(TAG, "bgReadings is null in adjustRecentBgReadings");