def smoothEstimate(self, nodeShape, estimatedNodeCount):
        """
        Smooth out fluctuations in the estimate for this node compared to
        previous runs. Returns an integer.
        """
        weightedEstimate = (1 - self.betaInertia) * estimatedNodeCount + \
                           self.betaInertia * self.previousWeightedEstimate[nodeShape]
        self.previousWeightedEstimate[nodeShape] = weightedEstimate
        return self._round(weightedEstimate)
def smoothEstimate ( self , nodeShape , estimatedNodeCount ) : weightedEstimate = ( 1 - self . betaInertia ) * estimatedNodeCount + self . betaInertia * self . previousWeightedEstimate [ nodeShape ] self . previousWeightedEstimate [ nodeShape ] = weightedEstimate return self . _round ( weightedEstimate )
Smooth out fluctuations in the estimate for this node compared to
        previous runs. Returns an integer.