private double gainForSugarValue(double val) {
		double leSize = 0.0;
		double leGood = 0.0;
		double leBad = 0.0;
		double gtSize = 0.0;
		double gtGood = 0.0;
		double gtBad = 0.0;
		for (Tea t : trainingSet) {
			if (t.getSugar() <= val) {
				leSize++;
				if (t.isDrinkable()) {
					leGood++;
				} else {
					leBad++;
				}
			}
			if (t.getSugar() > val) {
				gtSize++;
				if (t.isDrinkable()) {
					gtGood++;
				} else {
					gtBad++;
				}
			}
		}
		double result = leSize / (double) trainingSet.size() * entropy(leGood / leSize, leBad / leSize);
		result += gtSize / (double) trainingSet.size() * entropy(gtGood / gtSize, gtBad / gtSize);
		return info() - result;
	}