// if no DiscreteEstimator is present in the map, create one
if (df == null) {
df = new DiscreteEstimator(instances.numClasses(), 0);
}
df.addValue(instance.classValue(), instance.weight()); // update
m_estimatedDistributions.put(c, df); // put back in map
}
// Create the attributes for m_baseMin and m_baseMax.
// These are identical to those of m_train, except that the