DoubleVector feature = featureIterator.next();
possibleFeatureValues.add(feature.get(featureIndex));
}
double bestInfogain = -1;
double bestSplit = 0.0;
TDoubleIterator iterator = possibleFeatureValues.iterator();
while (iterator.hasNext()) {
double value = iterator.next();
double ig = computeNumericalInfogain(features, outcome, overallEntropy,
featureIndex, value);
if (ig > bestInfogain) {
bestInfogain = ig;
bestSplit = value;