Beispiel #1
0
 def divisor(self, a, b):
     return (Lg2.nLog2(b) >> 3) + (Lg2.nLog2(1950) >> 3) - (12 << 11)
Beispiel #2
0
 def updateRecentCost(self, symbolFrequency, totalFrequency):
     self.recentCost -= self.recentCost >> Common.CostScale
     self.recentCost += Lg2.nLog2(totalFrequency)
     self.recentCost -= Lg2.nLog2(symbolFrequency)
Beispiel #3
0
 def divisor(self, a, b):
     return (Lg2.nLog2(b) >> 3) + (Lg2.nLog2(1950) >> 3) - (12 << 11)