Ver código fonte

Fix the average lifetime residuals bug

Vadim Markovtsev 8 anos atrás
pai
commit
271f56ada2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      labours.py

+ 1 - 0
labours.py

@@ -43,6 +43,7 @@ def calculate_average_lifetime(matrix):
                 start += 1
                 continue
             lifetimes[i - start] = band[i - 1] - line
+        lifetimes[i - start] = band[i - 1]
     return (lifetimes.dot(numpy.arange(1, matrix.shape[1], 1))
             / (lifetimes.sum() * matrix.shape[1]))