Example #1
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
Example #2
0
 def txtime(self, prob=None, length=1200):
     if prob is None: prob = self.prob()
     if prob == 0:
         return float('inf')
     else:
         return rates.tx_time(self.idx, length) / prob
Example #3
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)
Example #4
0
 def txtime_perfect(self, length=1200):
     return rates.tx_time(self.idx, length)