//checks if an interruption was a distraction public static bool WasDistraction(Tuple <string, double> t, dataParsing.windowData window) { if ((t.Item2 > 0.08) && (t.Item2 < 0.2 * window.totalTime)) { return(true); } else { return(false); } }
//checks for long periods of very few interruptions - identifies focused behavior public static bool WasFocus(dataParsing.windowData window) { double ttime = 0; foreach (var t in window.interruptor) { ttime += t.Item2; } if (ttime < .4 * window.totalTime) { return(true); } else { return(false); } }