def getEstimatedErrorsForDistribution(self, theDistribution: Distribution): if Utils.equal(theDistribution.total(), 0): return 0 return theDistribution.numIncorrect() + Utils.addErrs( theDistribution.total(), theDistribution.numIncorrect(), self.m_CF)