/// <summary> Computes estimated errors for leaf.</summary> private double getEstimatedErrorsForDistribution(Distribution theDistribution) { if (Utils.eq(theDistribution.total(), 0)) return 0; else return theDistribution.numIncorrect() + Stats.addErrs(theDistribution.total(), theDistribution.numIncorrect(), m_CF); }