Explorar o código

Fix the average lifetime residuals bug

Vadim Markovtsev %!s(int64=8) %!d(string=hai) anos
pai
achega
271f56ada2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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]))