code: private double getHistoryErrorRate(List<Integer> predHistory){
  		double sumCorrect = 0;
  		for (Integer e : predHistory) {
  			sumCorrect += e;
  		}
  		return 1. - (sumCorrect / predHistory.size());
  	}
docs: Calculates the achieved error rate of a history.