private static double getAverageValue(State state, Action action) { double sumValue = 0.0; for (TabularQLearningForTwo tq : tabularQLearnings) { sumValue += tq.getActionValue(state, action).getValue(); } return sumValue / tabularQLearnings.size(); }