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